ol-mapbox-style
Advanced tools
Comparing version 6.8.1 to 6.8.2
# Changelog | ||
## 6.8.2 | ||
* Use OpenLayers's fixed `ol/View#getProperties()` method, if available | ||
* Avoid applying background if layout is none | ||
## 6.8.1 | ||
@@ -4,0 +9,0 @@ |
@@ -1,2 +0,2 @@ | ||
"use strict";(self.webpackChunkol_mapbox_style=self.webpackChunkol_mapbox_style||[]).push([[223],{2044:(s,e,n)=>{n(9789),(0,n(5039).nn)("map","data/geojson-inline.json")}},s=>{s(s.s=2044)}]); | ||
"use strict";(self.webpackChunkol_mapbox_style=self.webpackChunkol_mapbox_style||[]).push([[223],{2044:(s,e,n)=>{n(9789),(0,n(2697).nn)("map","data/geojson-inline.json")}},s=>{s(s.s=2044)}]); | ||
//# sourceMappingURL=geojson-inline.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";(self.webpackChunkol_mapbox_style=self.webpackChunkol_mapbox_style||[]).push([[346],{3370:(s,e,a)=>{a(9789),(0,a(5039).nn)("map","data/geojson.json")}},s=>{s(s.s=3370)}]); | ||
"use strict";(self.webpackChunkol_mapbox_style=self.webpackChunkol_mapbox_style||[]).push([[346],{3370:(s,e,a)=>{a(9789),(0,a(2697).nn)("map","data/geojson.json")}},s=>{s(s.s=3370)}]); | ||
//# sourceMappingURL=geojson.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";(self.webpackChunkol_mapbox_style=self.webpackChunkol_mapbox_style||[]).push([[862],{3863:(e,o,s)=>{s(9789);var c=s(5039),a=document.cookie.replace(/(?:(?:^|.*;\s*)mapbox_access_token\s*\=\s*([^;]*).*$)|^.*$/,"$1");a||(a=window.prompt("Enter your Mapbox API access token:"),document.cookie="mapbox_access_token="+a+"; expires=Fri, 31 Dec 9999 23:59:59 GMT"),(0,c.ZP)("map","https://api.mapbox.com/styles/v1/mapbox/bright-v9?access_token="+a)}},e=>{e(e.s=3863)}]); | ||
"use strict";(self.webpackChunkol_mapbox_style=self.webpackChunkol_mapbox_style||[]).push([[862],{3863:(e,o,s)=>{s(9789);var c=s(2697),a=document.cookie.replace(/(?:(?:^|.*;\s*)mapbox_access_token\s*\=\s*([^;]*).*$)|^.*$/,"$1");a||(a=window.prompt("Enter your Mapbox API access token:"),document.cookie="mapbox_access_token="+a+"; expires=Fri, 31 Dec 9999 23:59:59 GMT"),(0,c.ZP)("map","https://api.mapbox.com/styles/v1/mapbox/bright-v9?access_token="+a)}},e=>{e(e.s=3863)}]); | ||
//# sourceMappingURL=mapbox.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";(self.webpackChunkol_mapbox_style=self.webpackChunkol_mapbox_style||[]).push([[347],{9312:(e,s,o)=>{o(9789);var t=o(5039),c=document.cookie.replace(/(?:(?:^|.*;\s*)tilehosting_access_token\s*\=\s*([^;]*).*$)|^.*$/,"$1");c||(c=window.prompt("Enter your tilehosting API access token:"),document.cookie="tilehosting_access_token="+c+"; expires=Fri, 31 Dec 9999 23:59:59 GMT"),(0,t.ZP)("map","https://api.maptiler.com/maps/basic/style.json?key="+c)}},e=>{e(e.s=9312)}]); | ||
"use strict";(self.webpackChunkol_mapbox_style=self.webpackChunkol_mapbox_style||[]).push([[347],{9312:(e,s,o)=>{o(9789);var t=o(2697),c=document.cookie.replace(/(?:(?:^|.*;\s*)tilehosting_access_token\s*\=\s*([^;]*).*$)|^.*$/,"$1");c||(c=window.prompt("Enter your tilehosting API access token:"),document.cookie="tilehosting_access_token="+c+"; expires=Fri, 31 Dec 9999 23:59:59 GMT"),(0,t.ZP)("map","https://api.maptiler.com/maps/basic/style.json?key="+c)}},e=>{e(e.s=9312)}]); | ||
//# sourceMappingURL=openmaptiles.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";(self.webpackChunkol_mapbox_style=self.webpackChunkol_mapbox_style||[]).push([[366],{7521:(s,e,o)=>{o(9789),(0,o(5039).nn)("map"," https://demo.tegola.io/styles/hot-osm.json")}},s=>{s(s.s=7521)}]); | ||
"use strict";(self.webpackChunkol_mapbox_style=self.webpackChunkol_mapbox_style||[]).push([[366],{7521:(s,e,o)=>{o(9789),(0,o(2697).nn)("map"," https://demo.tegola.io/styles/hot-osm.json")}},s=>{s(s.s=7521)}]); | ||
//# sourceMappingURL=tilejson-vectortile.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";(self.webpackChunkol_mapbox_style=self.webpackChunkol_mapbox_style||[]).push([[177],{7090:(s,e,a)=>{a(9789),(0,a(5039).nn)("map","data/tilejson.json")}},s=>{s(s.s=7090)}]); | ||
"use strict";(self.webpackChunkol_mapbox_style=self.webpackChunkol_mapbox_style||[]).push([[177],{7090:(s,e,a)=>{a(9789),(0,a(2697).nn)("map","data/tilejson.json")}},s=>{s(s.s=7090)}]); | ||
//# sourceMappingURL=tilejson.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";(self.webpackChunkol_mapbox_style=self.webpackChunkol_mapbox_style||[]).push([[840],{2522:(s,a,e)=>{e(9789),(0,e(5039).ZP)("map","data/wms.json")}},s=>{s(s.s=2522)}]); | ||
"use strict";(self.webpackChunkol_mapbox_style=self.webpackChunkol_mapbox_style||[]).push([[840],{2522:(s,a,e)=>{e(9789),(0,e(2697).ZP)("map","data/wms.json")}},s=>{s(s.s=2522)}]); | ||
//# sourceMappingURL=wms.js.map |
@@ -248,4 +248,4 @@ /* | ||
element.style.opacity = ''; | ||
return undefined; | ||
} | ||
return undefined; | ||
} | ||
@@ -459,5 +459,5 @@ return _colorWithOpacity(bg, opacity); | ||
: !view.isDef() && !view.getRotation() && !view.getResolutions()) { | ||
view = new View({ | ||
view = new View(assign(view.getProperties(), { | ||
maxResolution: defaultResolutions[0], | ||
}); | ||
})); | ||
map.setView(view); | ||
@@ -464,0 +464,0 @@ } |
{ | ||
"name": "ol-mapbox-style", | ||
"version": "6.8.1", | ||
"version": "6.8.2", | ||
"description": "Create OpenLayers maps from Mapbox Style objects", | ||
@@ -39,3 +39,3 @@ "main": "dist/index.js", | ||
"@types/geojson": "^7946.0.7", | ||
"@types/node": "^16.11.7", | ||
"@types/node": "^17.0.1", | ||
"@types/offscreencanvas": "^2019.6.4", | ||
@@ -64,3 +64,3 @@ "@types/topojson-specification": "^1.0.1", | ||
"mocha": "^9.1.3", | ||
"ol": "^6.7.0", | ||
"ol": "^6.9.0", | ||
"puppeteer": "^13.0.0", | ||
@@ -67,0 +67,0 @@ "should": "^13.2.3", |
@@ -296,4 +296,4 @@ /* | ||
element.style.opacity = ''; | ||
return undefined; | ||
} | ||
return undefined; | ||
} | ||
@@ -519,5 +519,7 @@ return _colorWithOpacity(bg, opacity); | ||
) { | ||
view = new View({ | ||
maxResolution: defaultResolutions[0], | ||
}); | ||
view = new View( | ||
assign(view.getProperties(), { | ||
maxResolution: defaultResolutions[0], | ||
}) | ||
); | ||
map.setView(view); | ||
@@ -524,0 +526,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8672345
13463