Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

ol-mapbox-style

Package Overview
Dependencies
Maintainers
2
Versions
170
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ol-mapbox-style - npm Package Compare versions

Comparing version 3.2.0 to 3.2.1

2

__tests__/finalizeLayer.test.js

@@ -13,3 +13,3 @@ // import should from 'should/as-function';

const finalizeLayer = require('../index').__get__('finalizeLayer');
import {finalizeLayer} from '../index';

@@ -16,0 +16,0 @@

module.exports = {
'plugins': [
'rewire'
],
'presets': [

@@ -6,0 +3,0 @@ '@babel/preset-env'

@@ -1,2 +0,2 @@

(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{224:function(n,_,e){"use strict";e.r(_),function(n){e.d(_,"__get__",function(){return E}),e.d(_,"__GetDependency__",function(){return E}),e.d(_,"__Rewire__",function(){return y}),e.d(_,"__set__",function(){return y}),e.d(_,"__ResetDependency__",function(){return R}),e.d(_,"__RewireAPI__",function(){return l});e(66);var t=e(38);function r(n){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function o(){try{if(n)return n}catch(n){try{if(window)return window}catch(n){return this}}}E("apply")("map","data/geojson-inline.json");var c=null;function u(){if(null===c){var n=o();n.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__||(n.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__=0),c=__$$GLOBAL_REWIRE_NEXT_MODULE_ID__++}return c}function i(){var n=o();return n.__$$GLOBAL_REWIRE_REGISTRY__||(n.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)),n.__$$GLOBAL_REWIRE_REGISTRY__}function f(){var n=u(),_=i(),e=_[n];return e||(_[n]=Object.create(null),e=_[n]),e}!function(){var n=o();n.__rewire_reset_all__||(n.__rewire_reset_all__=function(){n.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)})}();var a="__INTENTIONAL_UNDEFINED__",l={};function E(n){var _=f();if(void 0===_[n])return function(n){switch(n){case"apply":return t.a}return}(n);var e=_[n];return e===a?void 0:e}function y(n,_){var e=f();return"object"===r(n)?(Object.keys(n).forEach(function(_){e[_]=n[_]}),function(){Object.keys(n).forEach(function(_){R(n)})}):(e[n]=void 0===_?a:_,function(){R(n)})}function R(n){var _=f();delete _[n],0==Object.keys(_).length&&delete i()[u]}function s(n){var _=f(),e=Object.keys(n),t={};function r(){e.forEach(function(n){_[n]=t[n]})}return function(o){e.forEach(function(e){t[e]=_[e],_[e]=n[e]});var c=o();return c&&"function"==typeof c.then?c.then(r).catch(r):r(),c}}!function(){function n(n,_){Object.defineProperty(l,n,{value:_,enumerable:!1,configurable:!0})}n("__get__",E),n("__GetDependency__",E),n("__Rewire__",y),n("__set__",y),n("__reset__",R),n("__ResetDependency__",R),n("__with__",s)}(),_.default=l}.call(this,e(0))}},[[224,0]]]);
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{104:function(n,o,a){"use strict";a.r(o);a(62);var s=a(43);Object(s.a)("map","data/geojson-inline.json")}},[[104,0]]]);
//# sourceMappingURL=geojson-inline.js.map

@@ -1,2 +0,2 @@

(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{238:function(n,_,t){"use strict";t.r(_),function(n){t.d(_,"__get__",function(){return E}),t.d(_,"__GetDependency__",function(){return E}),t.d(_,"__Rewire__",function(){return y}),t.d(_,"__set__",function(){return y}),t.d(_,"__ResetDependency__",function(){return R}),t.d(_,"__RewireAPI__",function(){return l});t(66);var e=t(38);function r(n){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function o(){try{if(n)return n}catch(n){try{if(window)return window}catch(n){return this}}}E("apply")("map","data/geojson.json");var c=null;function u(){if(null===c){var n=o();n.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__||(n.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__=0),c=__$$GLOBAL_REWIRE_NEXT_MODULE_ID__++}return c}function i(){var n=o();return n.__$$GLOBAL_REWIRE_REGISTRY__||(n.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)),n.__$$GLOBAL_REWIRE_REGISTRY__}function f(){var n=u(),_=i(),t=_[n];return t||(_[n]=Object.create(null),t=_[n]),t}!function(){var n=o();n.__rewire_reset_all__||(n.__rewire_reset_all__=function(){n.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)})}();var a="__INTENTIONAL_UNDEFINED__",l={};function E(n){var _=f();if(void 0===_[n])return function(n){switch(n){case"apply":return e.a}return}(n);var t=_[n];return t===a?void 0:t}function y(n,_){var t=f();return"object"===r(n)?(Object.keys(n).forEach(function(_){t[_]=n[_]}),function(){Object.keys(n).forEach(function(_){R(n)})}):(t[n]=void 0===_?a:_,function(){R(n)})}function R(n){var _=f();delete _[n],0==Object.keys(_).length&&delete i()[u]}function s(n){var _=f(),t=Object.keys(n),e={};function r(){t.forEach(function(n){_[n]=e[n]})}return function(o){t.forEach(function(t){e[t]=_[t],_[t]=n[t]});var c=o();return c&&"function"==typeof c.then?c.then(r).catch(r):r(),c}}!function(){function n(n,_){Object.defineProperty(l,n,{value:_,enumerable:!1,configurable:!0})}n("__get__",E),n("__GetDependency__",E),n("__Rewire__",y),n("__set__",y),n("__reset__",R),n("__ResetDependency__",R),n("__with__",s)}(),_.default=l}.call(this,t(0))}},[[238,0]]]);
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{118:function(n,o,a){"use strict";a.r(o);a(62);var s=a(43);Object(s.a)("map","data/geojson.json")}},[[118,0]]]);
//# sourceMappingURL=geojson.js.map

@@ -1,2 +0,2 @@

(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{239:function(e,n,t){"use strict";t.r(n),function(e){t.d(n,"__get__",function(){return p}),t.d(n,"__GetDependency__",function(){return p}),t.d(n,"__Rewire__",function(){return b}),t.d(n,"__set__",function(){return b}),t.d(n,"__ResetDependency__",function(){return R}),t.d(n,"__RewireAPI__",function(){return y});t(66);var _=t(38);function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var c="https://api.mapbox.com/styles/v1/mapbox/bright-v9",o=document.cookie.replace(/(?:(?:^|.*;\s*)mapbox_access_token\s*\=\s*([^;]*).*$)|^.*$/,"$1");function u(){try{if(e)return e}catch(e){try{if(window)return window}catch(e){return this}}}p("key")||(E("key",window.prompt("Enter your Mapbox API access token:")),document.cookie="mapbox_access_token="+p("key")+"; expires=Fri, 31 Dec 9999 23:59:59 GMT"),p("apply")("map",p("baseUrl")+"?access_token="+p("key"));var i=null;function a(){if(null===i){var e=u();e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__||(e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__=0),i=__$$GLOBAL_REWIRE_NEXT_MODULE_ID__++}return i}function f(){var e=u();return e.__$$GLOBAL_REWIRE_REGISTRY__||(e.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)),e.__$$GLOBAL_REWIRE_REGISTRY__}function s(){var e=a(),n=f(),t=n[e];return t||(n[e]=Object.create(null),t=n[e]),t}!function(){var e=u();e.__rewire_reset_all__||(e.__rewire_reset_all__=function(){e.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)})}();var l="__INTENTIONAL_UNDEFINED__",y={};function p(e){var n=s();if(void 0===n[e])return function(e){switch(e){case"key":return o;case"apply":return _.a;case"baseUrl":return c}return}(e);var t=n[e];return t===l?void 0:t}function E(e,n){var t=s();return void 0===t[e]?function(e,n){switch(e){case"key":return o=n}return}(e,n):t[e]=n}function b(e,n){var t=s();return"object"===r(e)?(Object.keys(e).forEach(function(n){t[n]=e[n]}),function(){Object.keys(e).forEach(function(n){R(e)})}):(t[e]=void 0===n?l:n,function(){R(e)})}function R(e){var n=s();delete n[e],0==Object.keys(n).length&&delete f()[a]}function d(e){var n=s(),t=Object.keys(e),_={};function r(){t.forEach(function(e){n[e]=_[e]})}return function(c){t.forEach(function(t){_[t]=n[t],n[t]=e[t]});var o=c();return o&&"function"==typeof o.then?o.then(r).catch(r):r(),o}}!function(){function e(e,n){Object.defineProperty(y,e,{value:n,enumerable:!1,configurable:!0})}e("__get__",p),e("__GetDependency__",p),e("__Rewire__",b),e("__set__",b),e("__reset__",R),e("__ResetDependency__",R),e("__with__",d)}(),n.default=y}.call(this,t(0))}},[[239,0]]]);
(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{119:function(o,e,c){"use strict";c.r(e);c(62);var s=c(43),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.a)("map","https://api.mapbox.com/styles/v1/mapbox/bright-v9?access_token="+p)}},[[119,0]]]);
//# sourceMappingURL=mapbox.js.map

@@ -1,2 +0,2 @@

(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{240:function(e,n,t){"use strict";t.r(n),function(e){t.d(n,"__get__",function(){return L}),t.d(n,"__GetDependency__",function(){return L}),t.d(n,"__Rewire__",function(){return b}),t.d(n,"__set__",function(){return b}),t.d(n,"__ResetDependency__",function(){return v}),t.d(n,"__RewireAPI__",function(){return p});t(66);var r=t(75),_=t(125),o=t(114),c=t(126),u=t(141),a=t(84);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var f=new(L("VectorLayer"))({declutter:!0,source:new(L("VectorSource"))({format:new(L("GeoJsonFormat")),url:"data/states.geojson"})}),s=new(L("Map"))({target:"map",view:new(L("View"))({center:[-13603186.115192635,6785744.563386],zoom:2})});function l(){try{if(e)return e}catch(e){try{if(window)return window}catch(e){return this}}}fetch("data/states.json").then(function(e){return e.json()}).then(function(e){L("stylefunction")(L("layer"),e,"states"),L("map").addLayer(L("layer"))});var y=null;function E(){if(null===y){var e=l();e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__||(e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__=0),y=__$$GLOBAL_REWIRE_NEXT_MODULE_ID__++}return y}function R(){var e=l();return e.__$$GLOBAL_REWIRE_REGISTRY__||(e.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)),e.__$$GLOBAL_REWIRE_REGISTRY__}function d(){var e=E(),n=R(),t=n[e];return t||(n[e]=Object.create(null),t=n[e]),t}!function(){var e=l();e.__rewire_reset_all__||(e.__rewire_reset_all__=function(){e.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)})}();var w="__INTENTIONAL_UNDEFINED__",p={};function L(e){var n=d();if(void 0===n[e])return function(e){switch(e){case"VectorLayer":return r.a;case"VectorSource":return _.a;case"GeoJsonFormat":return o.a;case"Map":return c.a;case"View":return u.a;case"stylefunction":return a.a;case"layer":return f;case"map":return s}return}(e);var t=n[e];return t===w?void 0:t}function b(e,n){var t=d();return"object"===i(e)?(Object.keys(e).forEach(function(n){t[n]=e[n]}),function(){Object.keys(e).forEach(function(n){v(e)})}):(t[e]=void 0===n?w:n,function(){v(e)})}function v(e){var n=d();delete n[e],0==Object.keys(n).length&&delete R()[E]}function O(e){var n=d(),t=Object.keys(e),r={};function _(){t.forEach(function(e){n[e]=r[e]})}return function(o){t.forEach(function(t){r[t]=n[t],n[t]=e[t]});var c=o();return c&&"function"==typeof c.then?c.then(_).catch(_):_(),c}}!function(){function e(e,n){Object.defineProperty(p,e,{value:n,enumerable:!1,configurable:!0})}e("__get__",L),e("__GetDependency__",L),e("__Rewire__",b),e("__set__",b),e("__reset__",v),e("__ResetDependency__",v),e("__with__",O)}(),n.default=p}.call(this,t(0))}},[[240,0]]]);
(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{120:function(e,t,n){"use strict";n.r(t);n(62);var a=n(63),o=n(78),s=n(95),r=n(77),w=n(94),c=n(74),u=new a.a({declutter:!0,source:new o.a({format:new s.a,url:"data/states.geojson"})}),d=new r.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"),d.addLayer(u)})}},[[120,0]]]);
//# sourceMappingURL=stylefunction.js.map

@@ -1,2 +0,2 @@

(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{241:function(n,_,t){"use strict";t.r(_),function(n){t.d(_,"__get__",function(){return E}),t.d(_,"__GetDependency__",function(){return E}),t.d(_,"__Rewire__",function(){return y}),t.d(_,"__set__",function(){return y}),t.d(_,"__ResetDependency__",function(){return R}),t.d(_,"__RewireAPI__",function(){return l});t(66);var e=t(38);function r(n){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function c(){try{if(n)return n}catch(n){try{if(window)return window}catch(n){return this}}}E("apply")("map","https://rawgit.com/PetersonGIS/CamoStyle/2911cfa859354ba668c572787a3a9c54c2ea4474/camo.json");var o=null;function u(){if(null===o){var n=c();n.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__||(n.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__=0),o=__$$GLOBAL_REWIRE_NEXT_MODULE_ID__++}return o}function i(){var n=c();return n.__$$GLOBAL_REWIRE_REGISTRY__||(n.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)),n.__$$GLOBAL_REWIRE_REGISTRY__}function f(){var n=u(),_=i(),t=_[n];return t||(_[n]=Object.create(null),t=_[n]),t}!function(){var n=c();n.__rewire_reset_all__||(n.__rewire_reset_all__=function(){n.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)})}();var a="__INTENTIONAL_UNDEFINED__",l={};function E(n){var _=f();if(void 0===_[n])return function(n){switch(n){case"apply":return e.a}return}(n);var t=_[n];return t===a?void 0:t}function y(n,_){var t=f();return"object"===r(n)?(Object.keys(n).forEach(function(_){t[_]=n[_]}),function(){Object.keys(n).forEach(function(_){R(n)})}):(t[n]=void 0===_?a:_,function(){R(n)})}function R(n){var _=f();delete _[n],0==Object.keys(_).length&&delete i()[u]}function s(n){var _=f(),t=Object.keys(n),e={};function r(){t.forEach(function(n){_[n]=e[n]})}return function(c){t.forEach(function(t){e[t]=_[t],_[t]=n[t]});var o=c();return o&&"function"==typeof o.then?o.then(r).catch(r):r(),o}}!function(){function n(n,_){Object.defineProperty(l,n,{value:_,enumerable:!1,configurable:!0})}n("__get__",E),n("__GetDependency__",E),n("__Rewire__",y),n("__set__",y),n("__reset__",R),n("__ResetDependency__",R),n("__with__",s)}(),_.default=l}.call(this,t(0))}},[[241,0]]]);
(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{121:function(a,c,o){"use strict";o.r(c);o(62);var t=o(43);Object(t.a)("map","https://rawgit.com/PetersonGIS/CamoStyle/2911cfa859354ba668c572787a3a9c54c2ea4474/camo.json")}},[[121,0]]]);
//# sourceMappingURL=tilejson-vectortile.js.map

@@ -1,2 +0,2 @@

(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{242:function(n,_,t){"use strict";t.r(_),function(n){t.d(_,"__get__",function(){return E}),t.d(_,"__GetDependency__",function(){return E}),t.d(_,"__Rewire__",function(){return y}),t.d(_,"__set__",function(){return y}),t.d(_,"__ResetDependency__",function(){return R}),t.d(_,"__RewireAPI__",function(){return l});t(66);var e=t(38);function r(n){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function o(){try{if(n)return n}catch(n){try{if(window)return window}catch(n){return this}}}E("apply")("map","data/tilejson.json");var c=null;function u(){if(null===c){var n=o();n.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__||(n.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__=0),c=__$$GLOBAL_REWIRE_NEXT_MODULE_ID__++}return c}function i(){var n=o();return n.__$$GLOBAL_REWIRE_REGISTRY__||(n.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)),n.__$$GLOBAL_REWIRE_REGISTRY__}function f(){var n=u(),_=i(),t=_[n];return t||(_[n]=Object.create(null),t=_[n]),t}!function(){var n=o();n.__rewire_reset_all__||(n.__rewire_reset_all__=function(){n.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)})}();var a="__INTENTIONAL_UNDEFINED__",l={};function E(n){var _=f();if(void 0===_[n])return function(n){switch(n){case"apply":return e.a}return}(n);var t=_[n];return t===a?void 0:t}function y(n,_){var t=f();return"object"===r(n)?(Object.keys(n).forEach(function(_){t[_]=n[_]}),function(){Object.keys(n).forEach(function(_){R(n)})}):(t[n]=void 0===_?a:_,function(){R(n)})}function R(n){var _=f();delete _[n],0==Object.keys(_).length&&delete i()[u]}function s(n){var _=f(),t=Object.keys(n),e={};function r(){t.forEach(function(n){_[n]=e[n]})}return function(o){t.forEach(function(t){e[t]=_[t],_[t]=n[t]});var c=o();return c&&"function"==typeof c.then?c.then(r).catch(r):r(),c}}!function(){function n(n,_){Object.defineProperty(l,n,{value:_,enumerable:!1,configurable:!0})}n("__get__",E),n("__GetDependency__",E),n("__Rewire__",y),n("__set__",y),n("__reset__",R),n("__ResetDependency__",R),n("__with__",s)}(),_.default=l}.call(this,t(0))}},[[242,0]]]);
(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{122:function(n,a,o){"use strict";o.r(a);o(62);var s=o(43);Object(s.a)("map","data/tilejson.json")}},[[122,0]]]);
//# sourceMappingURL=tilejson.js.map

@@ -1,2 +0,2 @@

(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{243:function(n,_,t){"use strict";t.r(_),function(n){t.d(_,"__get__",function(){return E}),t.d(_,"__GetDependency__",function(){return E}),t.d(_,"__Rewire__",function(){return y}),t.d(_,"__set__",function(){return y}),t.d(_,"__ResetDependency__",function(){return R}),t.d(_,"__RewireAPI__",function(){return l});t(66);var e=t(38);function r(n){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function c(){try{if(n)return n}catch(n){try{if(window)return window}catch(n){return this}}}E("apply")("map","data/wms.json");var o=null;function u(){if(null===o){var n=c();n.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__||(n.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__=0),o=__$$GLOBAL_REWIRE_NEXT_MODULE_ID__++}return o}function i(){var n=c();return n.__$$GLOBAL_REWIRE_REGISTRY__||(n.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)),n.__$$GLOBAL_REWIRE_REGISTRY__}function f(){var n=u(),_=i(),t=_[n];return t||(_[n]=Object.create(null),t=_[n]),t}!function(){var n=c();n.__rewire_reset_all__||(n.__rewire_reset_all__=function(){n.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)})}();var a="__INTENTIONAL_UNDEFINED__",l={};function E(n){var _=f();if(void 0===_[n])return function(n){switch(n){case"apply":return e.a}return}(n);var t=_[n];return t===a?void 0:t}function y(n,_){var t=f();return"object"===r(n)?(Object.keys(n).forEach(function(_){t[_]=n[_]}),function(){Object.keys(n).forEach(function(_){R(n)})}):(t[n]=void 0===_?a:_,function(){R(n)})}function R(n){var _=f();delete _[n],0==Object.keys(_).length&&delete i()[u]}function s(n){var _=f(),t=Object.keys(n),e={};function r(){t.forEach(function(n){_[n]=e[n]})}return function(c){t.forEach(function(t){e[t]=_[t],_[t]=n[t]});var o=c();return o&&"function"==typeof o.then?o.then(r).catch(r):r(),o}}!function(){function n(n,_){Object.defineProperty(l,n,{value:_,enumerable:!1,configurable:!0})}n("__get__",E),n("__GetDependency__",E),n("__Rewire__",y),n("__set__",y),n("__reset__",R),n("__ResetDependency__",R),n("__with__",s)}(),_.default=l}.call(this,t(0))}},[[243,0]]]);
(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{123:function(a,n,s){"use strict";s.r(n);s(62);var w=s(43);Object(w.a)("map","data/wms.json")}},[[123,0]]]);
//# sourceMappingURL=wms.js.map

@@ -491,3 +491,2 @@ /*

* @private
*
* If layerIds is not empty, applies the style specified in glStyle to the layer,

@@ -502,18 +501,13 @@ * and adds the layer to the map.

* target of a new OpenLayers Map.
*
* @param {array} layerIds Array containing ids of already-processed layers.
*
* @param {ol.Map|HTMLElement|string} glStyle Style as a JSON object.
*
* @param {ol.Map|HTMLElement|string} path The path part of the URL to the style,
* if the style was defined as a string. (Why this if glStyle already being passed?)
*
* @param {ol.Map|HTMLElement|string} map Either an existing OpenLayers Map
* instance, or a HTML element, or the id of a HTML element that will be the
* target of a new OpenLayers Map.
*
* @return {Promise} Returns a promise that resolves after the source has
* been set on the specified layer, and the style has been applied.
*/
function finalizeLayer(layer, layerIds, glStyle, path, map) {
export function finalizeLayer(layer, layerIds, glStyle, path, map) {
return new Promise(function(resolve, reject) {

@@ -520,0 +514,0 @@ if (layerIds.length > 0) {

{
"name": "ol-mapbox-style",
"version": "3.2.0",
"version": "3.2.1",
"description": "Create OpenLayers maps from Mapbox Style objects",

@@ -74,3 +74,2 @@ "main": "index.js",

"@mapbox/mapbox-gl-style-spec": "^12.0.0",
"babel-plugin-rewire": "^1.2.0",
"mapbox-to-css-font": "^2.2.0",

@@ -77,0 +76,0 @@ "webfont-matcher": "^1.1.0"

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 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc