@sigma/layer-maplibre 3.0.0-beta.5 → 3.0.0-beta.6
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.
|
@@ -145,8 +145,8 @@ function bindMaplibreLayer(sigma, opts) {
|
|
|
145
145
|
var mapContainer = document.createElement("div");
|
|
146
146
|
var mapContainerId = "".concat(sigma.getContainer().id, "-map");
|
|
147
147
|
mapContainer.setAttribute("id", mapContainerId);
|
|
148
|
-
mapContainer.setAttribute("style", "position:
|
|
149
|
-
sigma.getContainer().
|
|
148
|
+
mapContainer.setAttribute("style", "position: absolute; inset: 0");
|
|
149
|
+
sigma.getContainer().prepend(mapContainer);
|
|
150
150
|
|
|
151
151
|
// Initialize the map
|
|
152
152
|
var map = new maplibreGl.Map(_objectSpread2({
|
|
@@ -145,8 +145,8 @@ function bindMaplibreLayer(sigma, opts) {
|
|
|
145
145
|
var mapContainer = document.createElement("div");
|
|
146
146
|
var mapContainerId = "".concat(sigma.getContainer().id, "-map");
|
|
147
147
|
mapContainer.setAttribute("id", mapContainerId);
|
|
148
|
-
mapContainer.setAttribute("style", "position:
|
|
149
|
-
sigma.getContainer().
|
|
148
|
+
mapContainer.setAttribute("style", "position: absolute; inset: 0");
|
|
149
|
+
sigma.getContainer().prepend(mapContainer);
|
|
150
150
|
|
|
151
151
|
// Initialize the map
|
|
152
152
|
var map = new maplibreGl.Map(_objectSpread2({
|
|
@@ -141,8 +141,8 @@ function bindMaplibreLayer(sigma, opts) {
|
|
|
141
141
|
var mapContainer = document.createElement("div");
|
|
142
142
|
var mapContainerId = "".concat(sigma.getContainer().id, "-map");
|
|
143
143
|
mapContainer.setAttribute("id", mapContainerId);
|
|
144
|
-
mapContainer.setAttribute("style", "position:
|
|
145
|
-
sigma.getContainer().
|
|
144
|
+
mapContainer.setAttribute("style", "position: absolute; inset: 0");
|
|
145
|
+
sigma.getContainer().prepend(mapContainer);
|
|
146
146
|
|
|
147
147
|
// Initialize the map
|
|
148
148
|
var map = new Map(_objectSpread2({
|
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.6",
|
|
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": "16ff5c7c421ea2f1a89e52cb694cf7c21892d653"
|
|
49
49
|
}
|