@sigma/layer-maplibre 3.0.0-beta.8 → 3.0.0-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -142,7 +142,8 @@ function bindMaplibreLayer(sigma, opts) {
|
|
|
142
142
|
var prevSigmaSettings = sigma.getSettings();
|
|
143
143
|
|
|
144
144
|
// Creating map container
|
|
145
|
-
var
|
|
145
|
+
var mapLayerName = "layer-maplibre";
|
|
146
|
+
var mapContainer = sigma.createLayer(mapLayerName, "div", {
|
|
146
147
|
style: {
|
|
147
148
|
position: "absolute",
|
|
148
149
|
inset: "0"
|
|
@@ -220,7 +221,7 @@ function bindMaplibreLayer(sigma, opts) {
|
|
|
220
221
|
isKilled = true;
|
|
221
222
|
map.off("moveend", fnSyncSigmaWithMap);
|
|
222
223
|
map.remove();
|
|
223
|
-
|
|
224
|
+
sigma.killLayer(mapLayerName);
|
|
224
225
|
sigma.off("afterRender", fnSyncMapWithSigma);
|
|
225
226
|
sigma.off("resize", fnOnResize);
|
|
226
227
|
|
|
@@ -142,7 +142,8 @@ function bindMaplibreLayer(sigma, opts) {
|
|
|
142
142
|
var prevSigmaSettings = sigma.getSettings();
|
|
143
143
|
|
|
144
144
|
// Creating map container
|
|
145
|
-
var
|
|
145
|
+
var mapLayerName = "layer-maplibre";
|
|
146
|
+
var mapContainer = sigma.createLayer(mapLayerName, "div", {
|
|
146
147
|
style: {
|
|
147
148
|
position: "absolute",
|
|
148
149
|
inset: "0"
|
|
@@ -220,7 +221,7 @@ function bindMaplibreLayer(sigma, opts) {
|
|
|
220
221
|
isKilled = true;
|
|
221
222
|
map.off("moveend", fnSyncSigmaWithMap);
|
|
222
223
|
map.remove();
|
|
223
|
-
|
|
224
|
+
sigma.killLayer(mapLayerName);
|
|
224
225
|
sigma.off("afterRender", fnSyncMapWithSigma);
|
|
225
226
|
sigma.off("resize", fnOnResize);
|
|
226
227
|
|
|
@@ -138,7 +138,8 @@ function bindMaplibreLayer(sigma, opts) {
|
|
|
138
138
|
var prevSigmaSettings = sigma.getSettings();
|
|
139
139
|
|
|
140
140
|
// Creating map container
|
|
141
|
-
var
|
|
141
|
+
var mapLayerName = "layer-maplibre";
|
|
142
|
+
var mapContainer = sigma.createLayer(mapLayerName, "div", {
|
|
142
143
|
style: {
|
|
143
144
|
position: "absolute",
|
|
144
145
|
inset: "0"
|
|
@@ -216,7 +217,7 @@ function bindMaplibreLayer(sigma, opts) {
|
|
|
216
217
|
isKilled = true;
|
|
217
218
|
map.off("moveend", fnSyncSigmaWithMap);
|
|
218
219
|
map.remove();
|
|
219
|
-
|
|
220
|
+
sigma.killLayer(mapLayerName);
|
|
220
221
|
sigma.off("afterRender", fnSyncMapWithSigma);
|
|
221
222
|
sigma.off("resize", fnOnResize);
|
|
222
223
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sigma/layer-maplibre",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.9",
|
|
4
4
|
"description": "A plugin to set a geographical map in background",
|
|
5
5
|
"main": "dist/sigma-layer-maplibre.cjs.js",
|
|
6
6
|
"module": "dist/sigma-layer-maplibre.esm.js",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
},
|
|
46
46
|
"./package.json": "./package.json"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "fc828dcb6e14282f323f2f1c62987444f9cf0c6f"
|
|
49
49
|
}
|