ol-mapbox-style
Advanced tools
Comparing version 6.5.1 to 6.5.2
# Changelog | ||
## 6.5.2 | ||
* Publish auto-generated `.d.ts` files for TypeScript | ||
## 6.5.1 | ||
@@ -4,0 +8,0 @@ |
@@ -1,2 +0,2 @@ | ||
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{112:function(n,o,a){"use strict";a.r(o);a(63);var s=a(39);Object(s.a)("map","data/geojson-inline.json")}},[[112,0]]]); | ||
"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)}]); | ||
//# sourceMappingURL=geojson-inline.js.map |
@@ -1,2 +0,2 @@ | ||
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{130:function(n,o,a){"use strict";a.r(o);a(63);var s=a(39);Object(s.a)("map","data/geojson.json")}},[[130,0]]]); | ||
"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)}]); | ||
//# sourceMappingURL=geojson.js.map |
@@ -1,2 +0,2 @@ | ||
(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{131:function(o,e,c){"use strict";c.r(e);c(63);var s=c(39),p=document.cookie.replace(/(?:(?:^|.*;\s*)mapbox_access_token\s*\=\s*([^;]*).*$)|^.*$/,"$1");p||(p=window.prompt("Enter your Mapbox API access token:"),document.cookie="mapbox_access_token="+p+"; expires=Fri, 31 Dec 9999 23:59:59 GMT"),Object(s.b)("map","https://api.mapbox.com/styles/v1/mapbox/bright-v9?access_token="+p)}},[[131,0]]]); | ||
"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)}]); | ||
//# sourceMappingURL=mapbox.js.map |
@@ -1,2 +0,2 @@ | ||
(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{132:function(e,s,o){"use strict";o.r(s);o(63);var t=o(39),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"),Object(t.b)("map","https://api.maptiler.com/maps/basic/style.json?key="+c)}},[[132,0]]]); | ||
"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)}]); | ||
//# sourceMappingURL=openmaptiles.js.map |
@@ -1,2 +0,2 @@ | ||
(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{133:function(e,t,a){"use strict";a.r(t);a(63);var n=a(103),s=a(83),o=a(85),r=a(84),w=a(75),c=a(71),u=new o.a({declutter:!0,source:new r.a({format:new n.a,url:"data/states.geojson"})}),d=new s.a({target:"map",view:new w.a({center:[-13603186.115192635,6785744.563386],zoom:2})});fetch("data/states.json").then((function(e){return e.json()})).then((function(e){Object(c.a)(u,e,"states"),-1===d.getLayers().getArray().indexOf(u)&&d.addLayer(u)}))}},[[133,0]]]); | ||
"use strict";(self.webpackChunkol_mapbox_style=self.webpackChunkol_mapbox_style||[]).push([[890],{635:(e,t,a)=>{a(9789);var n=a(5812),s=a(5206),o=a(518),r=a(4486),u=a(4286),c=a(9799),l=new o.Z({declutter:!0,source:new r.Z({format:new n.Z,url:"data/states.geojson"})}),w=new s.Z({target:"map",view:new u.ZP({center:[-13603186.115192635,6785744.563386],zoom:2})});fetch("data/states.json").then((function(e){return e.json()})).then((function(e){(0,c.ZP)(l,e,"states"),-1===w.getLayers().getArray().indexOf(l)&&w.addLayer(l)}))}},e=>{e(e.s=635)}]); | ||
//# sourceMappingURL=stylefunction.js.map |
@@ -1,2 +0,2 @@ | ||
(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{134:function(o,s,t){"use strict";t.r(s);t(63);var e=t(39);Object(e.a)("map"," https://demo.tegola.io/styles/hot-osm.json")}},[[134,0]]]); | ||
"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)}]); | ||
//# sourceMappingURL=tilejson-vectortile.js.map |
@@ -1,2 +0,2 @@ | ||
(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{135:function(n,a,o){"use strict";o.r(a);o(63);var s=o(39);Object(s.a)("map","data/tilejson.json")}},[[135,0]]]); | ||
"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)}]); | ||
//# sourceMappingURL=tilejson.js.map |
@@ -1,2 +0,2 @@ | ||
(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{136:function(n,s,w){"use strict";w.r(s);w(63);var a=w(39);Object(a.b)("map","data/wms.json")}},[[136,0]]]); | ||
"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)}]); | ||
//# sourceMappingURL=wms.js.map |
@@ -229,3 +229,3 @@ /* | ||
* property is specified in the Mapbox Style object. | ||
* @param {Object} [spriteImageUrl=undefined] Sprite image url for the sprite | ||
* @param {string} [spriteImageUrl=undefined] Sprite image url for the sprite | ||
* specified in the Mapbox Style object's `sprite` property. Only required if a | ||
@@ -232,0 +232,0 @@ * `sprite` property is specified in the Mapbox Style object. |
{ | ||
"name": "ol-mapbox-style", | ||
"version": "6.5.1", | ||
"version": "6.5.2", | ||
"description": "Create OpenLayers maps from Mapbox Style objects", | ||
@@ -21,7 +21,7 @@ "main": "dist/index.js", | ||
"scripts": { | ||
"start": "webpack-dev-server --config ./webpack.config.examples.cjs", | ||
"start": "webpack serve --config ./webpack.config.examples.cjs", | ||
"prepare": "npm run doc && npm run build", | ||
"build": "tsc --project tsconfig-build.json && webpack-cli --mode=production --config ./webpack.config.olms.cjs && webpack-cli --mode=production --config ./webpack.config.examples.cjs", | ||
"doc": "documentation readme -s API src/index.js src/stylefunction.js --document-exported true", | ||
"karma": "karma start test/karma.conf.js", | ||
"karma": "karma start test/karma.conf.cjs", | ||
"lint": "eslint test examples src", | ||
@@ -43,30 +43,31 @@ "typecheck": "tsc --project tsconfig-typecheck.json", | ||
"babel-loader": "^8.0.6", | ||
"buble": "^0.19.8", | ||
"buble": "^0.20.0", | ||
"buble-loader": "^0.5.1", | ||
"copy-webpack-plugin": "^6.0.3", | ||
"css-loader": "^3.4.0", | ||
"coverage-istanbul-loader": "^3.0.5", | ||
"css-loader": "^6.5.1", | ||
"deep-freeze": "0.0.1", | ||
"documentation": "^13.2.5", | ||
"eslint": "^7.30.0", | ||
"eslint-config-openlayers": "^15.1.0", | ||
"html-webpack-plugin": "^3.2.0", | ||
"eslint": "^8.2.0", | ||
"eslint-config-openlayers": "^16.0.1", | ||
"html-webpack-plugin": "^5.5.0", | ||
"karma": "^6.3.4", | ||
"karma-chrome-launcher": "^2.2.0", | ||
"karma-coverage": "^1.1.2", | ||
"karma-chrome-launcher": "^3.1.0", | ||
"karma-coverage-istanbul-reporter": "^3.0.3", | ||
"karma-mocha": "^2.0.1", | ||
"karma-sourcemap-loader": "^0.3.7", | ||
"karma-webpack": "^4.0.2", | ||
"karma-webpack": "^5.0.0", | ||
"mapbox-gl-styles": "^2.0.2", | ||
"mini-css-extract-plugin": "^0.4.5", | ||
"mocha": "^8.1.1", | ||
"mini-css-extract-plugin": "^2.4.4", | ||
"mocha": "^9.1.3", | ||
"ol": "^6.7.0", | ||
"puppeteer": "^1.20.0", | ||
"puppeteer": "^11.0.0", | ||
"should": "^13.2.3", | ||
"sinon": "^7.5.0", | ||
"style-loader": "^0.23.1", | ||
"typescript": "^4.3.5", | ||
"webpack": "^4.41.3", | ||
"webpack-cli": "^3.3.10", | ||
"webpack-dev-server": "^3.11.2" | ||
"sinon": "^12.0.1", | ||
"style-loader": "^3.3.1", | ||
"typescript": "4.3", | ||
"webpack": "^5.62.1", | ||
"webpack-cli": "^4.9.1", | ||
"webpack-dev-server": "^4.4.0" | ||
} | ||
} |
@@ -65,10 +65,2 @@ # ol-mapbox-style | ||
### Webpack | ||
When using webpack as bundler, it may be necessary to include the following in your webpack configuration: | ||
```js | ||
node: {fs: 'empty'} | ||
``` | ||
## API | ||
@@ -207,3 +199,3 @@ | ||
property is specified in the Mapbox Style object. (optional, default `undefined`) | ||
* `spriteImageUrl` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** Sprite image url for the sprite | ||
* `spriteImageUrl` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** Sprite image url for the sprite | ||
specified in the Mapbox Style object's `sprite` property. Only required if a | ||
@@ -210,0 +202,0 @@ `sprite` property is specified in the Mapbox Style object. (optional, default `undefined`) |
@@ -265,3 +265,3 @@ /* | ||
* property is specified in the Mapbox Style object. | ||
* @param {Object} [spriteImageUrl=undefined] Sprite image url for the sprite | ||
* @param {string} [spriteImageUrl=undefined] Sprite image url for the sprite | ||
* specified in the Mapbox Style object's `sprite` property. Only required if a | ||
@@ -268,0 +268,0 @@ * `sprite` property is specified in the Mapbox Style object. |
@@ -9,2 +9,3 @@ { | ||
"importHelpers": false, | ||
"declaration": true, | ||
}, | ||
@@ -11,0 +12,0 @@ "include": [ |
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 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
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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
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
8703668
112
15626
33
1
80
360