@sigma/layer-maplibre 3.0.0-beta.6 → 3.0.0-beta.7
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.
|
@@ -143,14 +143,13 @@ function bindMaplibreLayer(sigma, opts) {
|
|
|
143
143
|
|
|
144
144
|
// Creating map container
|
|
145
145
|
var mapContainer = document.createElement("div");
|
|
146
|
-
|
|
147
|
-
mapContainer.setAttribute("id", mapContainerId);
|
|
146
|
+
mapContainer.classList.add("sigma-layer-maplibre");
|
|
148
147
|
mapContainer.setAttribute("style", "position: absolute; inset: 0");
|
|
149
148
|
sigma.getContainer().prepend(mapContainer);
|
|
150
149
|
|
|
151
150
|
// Initialize the map
|
|
152
151
|
var map = new maplibreGl.Map(_objectSpread2({
|
|
153
|
-
container:
|
|
152
|
+
container: mapContainer,
|
|
154
153
|
style: "https://demotiles.maplibre.org/style.json",
|
|
155
154
|
center: [0, 0],
|
|
156
155
|
zoom: 1,
|
|
@@ -143,14 +143,13 @@ function bindMaplibreLayer(sigma, opts) {
|
|
|
143
143
|
|
|
144
144
|
// Creating map container
|
|
145
145
|
var mapContainer = document.createElement("div");
|
|
146
|
-
|
|
147
|
-
mapContainer.setAttribute("id", mapContainerId);
|
|
146
|
+
mapContainer.classList.add("sigma-layer-maplibre");
|
|
148
147
|
mapContainer.setAttribute("style", "position: absolute; inset: 0");
|
|
149
148
|
sigma.getContainer().prepend(mapContainer);
|
|
150
149
|
|
|
151
150
|
// Initialize the map
|
|
152
151
|
var map = new maplibreGl.Map(_objectSpread2({
|
|
153
|
-
container:
|
|
152
|
+
container: mapContainer,
|
|
154
153
|
style: "https://demotiles.maplibre.org/style.json",
|
|
155
154
|
center: [0, 0],
|
|
156
155
|
zoom: 1,
|
|
@@ -139,14 +139,13 @@ function bindMaplibreLayer(sigma, opts) {
|
|
|
139
139
|
|
|
140
140
|
// Creating map container
|
|
141
141
|
var mapContainer = document.createElement("div");
|
|
142
|
-
|
|
143
|
-
mapContainer.setAttribute("id", mapContainerId);
|
|
142
|
+
mapContainer.classList.add("sigma-layer-maplibre");
|
|
144
143
|
mapContainer.setAttribute("style", "position: absolute; inset: 0");
|
|
145
144
|
sigma.getContainer().prepend(mapContainer);
|
|
146
145
|
|
|
147
146
|
// Initialize the map
|
|
148
147
|
var map = new Map(_objectSpread2({
|
|
149
|
-
container:
|
|
148
|
+
container: mapContainer,
|
|
150
149
|
style: "https://demotiles.maplibre.org/style.json",
|
|
151
150
|
center: [0, 0],
|
|
152
151
|
zoom: 1,
|
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.7",
|
|
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": "126195956b46275ff4b0d5dedd380aa17ab3c9e2"
|
|
49
49
|
}
|