Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add zoom persistence to OpenLayers plugin #1920

Merged
merged 2 commits into from
Jul 27, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix compile issues
  • Loading branch information
texodus committed Jul 27, 2022
commit 721fd4eb753e1752f4c2bddf2f8b2842c4ef900c
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import mapView from "../views/map-view";
import views from "../views/views";
import css from "../../less/plugin.less";

views.forEach((plugin) => {
views.forEach(async (plugin) => {
customElements.define(
plugin.plugin.type,
class extends customElements.get("perspective-viewer-plugin") {
class extends HTMLElement {
constructor() {
super();
this.attachShadow({mode: "open"});
Expand Down Expand Up @@ -60,6 +60,7 @@ views.forEach((plugin) => {
}
);

await customElements.whenDefined("perspective-viewer");
customElements.get("perspective-viewer").registerPlugin(plugin.plugin.type);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import {
symbolWye,
} from "d3";

const {Polygon, Circle} = require("ol/geom");
const {toContext} = require("ol/render");
const {Style, Fill, Stroke} = require("ol/style");
import {Polygon, Circle} from "ol/geom";
import {toContext} from "ol/render";
import {Style, Fill, Stroke} from "ol/style";

const shapes = [
null,
Expand Down