mobility-toolbox-js 3.0.1-beta.5 → 3.0.1-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.
- package/mbt.js +0 -11
- package/mbt.js.map +2 -2
- package/mbt.min.js +1 -1
- package/mbt.min.js.map +3 -3
- package/ol/layers/MaplibreStyleLayer.js +0 -11
- package/package.json +1 -1
package/mbt.js
CHANGED
|
@@ -46312,21 +46312,10 @@ uniform ${i3} ${a3} u_${s3};
|
|
|
46312
46312
|
* @override
|
|
46313
46313
|
*/
|
|
46314
46314
|
attachToMap(map) {
|
|
46315
|
-
if (this.maplibreLayer && !this.maplibreLayer.getMapInternal()) {
|
|
46316
|
-
map.addLayer(this.maplibreLayer);
|
|
46317
|
-
}
|
|
46318
46315
|
const mapInternal = this.getMapInternal();
|
|
46319
46316
|
if (!mapInternal || !this.maplibreLayer) {
|
|
46320
46317
|
return;
|
|
46321
46318
|
}
|
|
46322
|
-
if (!mapInternal.getTargetElement()) {
|
|
46323
|
-
this.olEventsKeys.push(
|
|
46324
|
-
mapInternal.on("change:target", () => {
|
|
46325
|
-
this.attachToMap(map);
|
|
46326
|
-
})
|
|
46327
|
-
);
|
|
46328
|
-
return;
|
|
46329
|
-
}
|
|
46330
46319
|
const { mapLibreMap } = this.maplibreLayer;
|
|
46331
46320
|
if (mapLibreMap) {
|
|
46332
46321
|
if (mapLibreMap.loaded()) {
|