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

slippy-tile

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

slippy-tile - npm Package Compare versions

Comparing version 1.10.0 to 1.10.1

2

dist/slippy-tile.browser.js
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(factory((global.globalMercator = global.globalMercator || {})));
(factory((global.slippyTile = global.slippyTile || {})));
}(this, (function (exports) { 'use strict';

@@ -6,0 +6,0 @@

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

!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r(e.globalMercator=e.globalMercator||{})}(this,function(e){"use strict";function r(e){return e=e||256,2*Math.PI*6378137/e}function t(e){u(e);var r=e[0],t=e[1],a=r*T/180,i=Math.log(Math.tan((90+t)*Math.PI/360))/(Math.PI/180);return i=i*T/180,a=Number(a.toFixed(1)),i=Number(i.toFixed(1)),[a,i]}function a(e){var r=e[0],t=e[1],a=r/T*180,i=t/T*180;return i=180/Math.PI*(2*Math.atan(Math.exp(i*Math.PI/180))-Math.PI/2),a=Number(a.toFixed(6)),i=Number(i.toFixed(6)),[a,i]}function i(e,r){h(e);var t=e[0],a=e[1],i=e[2],o=y(i,r),n=t*o-T,s=a*o-T;return n=Number(n.toFixed(1)),s=Number(s.toFixed(1)),[n,s]}function o(e,r){r=r||256,g(e);var t=e[0],a=e[1],o=e[2],n=i([t*r,a*r,o]),s=i([(t+1)*r,(a+1)*r,o]);return[n[0],n[1],s[0],s[1]]}function n(e){g(e);var r=e[0],t=e[1],i=e[2];if(0===i)return[-180,-85.051129,180,85.051129];var n=o([r,t,i]),s=n[0],p=n[1],l=n[2],c=n[3],m=a([s,p,i]),d=a([l,c,i]);return[m[0],m[1],d[0],d[1]]}function s(e){var r=p(e);return n(r)}function p(e){var r=e[0],t=e[1],a=e[2],i=r,o=Math.pow(2,a)-t-1;return[i,o,a]}function l(e){var r=p(e);return c(r)}function c(e){g(e);var r=e[0],t=e[1],a=e[2];if(0===a)return"";var i="";return t=Math.pow(2,a)-1-t,b(a,0,-1).map(function(e){var a=0,o=1<<e-1;0!==(r&o)&&(a+=1),0!==(t&o)&&(a+=2),i=i.concat(a)}),i}function m(e){var r=t([e[0],e[1]]),a=t([e[2],e[3]]);return[r[0],r[1],a[0],a[1]]}function g(e){var r=e[0],t=e[1],a=e[2];if(d(a),void 0===r||null===r)throw new Error("<x> is required");if(void 0===t||null===t)throw new Error("<y> is required");if(r<0)throw new Error("<x> must not be less than 0");if(t<0)throw new Error("<y> must not be less than 0");var i=Math.pow(2,a);if(r>=i||t>=i)throw new Error("Illegal parameters for tile");return e}function d(e){if(void 0===e||null===e)throw new Error("<zoom> is required");if(e<0)throw new Error("<zoom> cannot be less than 0");if(e>30)throw new Error("<zoom> cannot be greater than 30");return e}function u(e){var r=e[0],t=e[1];if(void 0===t||null===t)throw new Error("<lat> is required");if(void 0===r||null===r)throw new Error("<lng> is required");if(t<-90||t>90)throw new Error("LngLat <lat> must be within -90 to 90 degrees");if(r<-180||r>180)throw new Error("LngLat <lng> must be within -180 to 180 degrees");return[r,t]}function h(e){return e}function y(e,t){return r(t)/Math.pow(2,e)}function b(e,r,t){null==r&&(r=e||0,e=0),t||(t=r<e?-1:1);for(var a=Math.max(Math.ceil((r-e)/t),0),i=Array(a),o=0;o<a;o++,e+=t)i[o]=e;return i}function f(e,r){var t=e[0],a=e[1],i=e[2];if(r=M(e,r),r=S(r),r=w(r),r=r.replace(/{(zoom|z|level)}/,String(i)),r=r.replace(/{(x|col)}/,String(t)),r=r.replace(/{(y|row)}/,String(a)),r.match(/{-y}/)&&(r=r.replace(/{-y}/,String(p(e)[1]))),r.match(/{(quadkey|q)}/)&&(r=r.replace(/{(quadkey|q)}/,l(e))),r.match(/{.*}/))throw new Error("Could not completly parse URL"+r);return r}function M(e,r){r=r.replace(/{height}/gi,"256"),r=r.replace(/{width}/gi,"256"),r=r.replace(/{(proj|srs|crs)}/gi,"EPSG:3857");var t;return t=r.match(/EPSG:(3857|900913)/i)?m(s(e)):s(e),r.match(/{bbox}/i)&&(r=r.replace(/{bbox}/gi,t.join(","))),r}function S(e){return e=e.replace(/{TileCol}/gi,"{x}"),e=e.replace(/{TileRow}/gi,"{y}"),e=e.replace(/{TileMatrix}/gi,"{z}"),e=e.replace(/{TileMatrixSet}/gi,"GoogleMapsCompatible"),e=e.replace(/{Style}/gi,"default")}function w(e){if(e.match(/{s}/))return e.replace(/{s}/gi,String(v(["a","b","c"])));var r=/{switch:([a-z,\d]*)}/,t=e.match(r);return t?e.replace(r,String(v(t[1].split(",")))):e}function v(e){return e[Math.floor(Math.random()*e.length)]}var T=2*Math.PI*6378137/2;const E={name:"Bing Imagery",categories:["bing","imagery","world"],url:"https://ecn.t{switch:0,1,2,3}.tiles.virtualearth.net/tiles/a{quadkey}.jpeg?g=5250",description:"Tiles from Bing",attribution:"Map data © Bing",format:"jpg",type:"baselayer"};var x=Object.freeze({imagery:E});const I={name:"ESRI National Geographic World Map",categories:["esri","national","geographic","world"],url:"https://services.arcgisonline.com/arcgis/rest/services/NatGeo_World_Map/MapServer/WMTS/tile/1.0.0/World_Imagery/{Style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.jpg",description:"This map is designed to be used as a general reference map for informational and educational purposes as well as a basemap by GIS professionals and other users for creating web maps and web mapping applications.",attribution:"National Geographic, Esri, DeLorme, HERE, UNEP-WCMC, USGS, NASA, ESA, METI, NRCAN, GEBCO, NOAA, INCREMENT P",format:"jpg",type:"baselayer"},O={name:"ESRI Ocean Basemap",categories:["esri","ocean","world"],url:"https://services.arcgisonline.com/arcgis/rest/services/Ocean_Basemap/MapServer/WMTS/tile/1.0.0/World_Imagery/{Style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.jpg",description:"The ocean basemap includes bathymetry, surface and subsurface feature names, and derived depths. This service is designed to be used as a basemap by marine GIS professionals and as a reference map by anyone interested in ocean data.",attribution:"Esri, GEBCO, NOAA, National Geographic, DeLorme, HERE, Geonames.org, and other contributors",format:"jpg",type:"baselayer"},N={name:"ESRI USA Topo Maps",categories:["esri","topo","topographicusa"],url:"https://services.arcgisonline.com/arcgis/rest/services/USA_Topo_Maps/MapServer/WMTS/tile/1.0.0/World_Imagery/{Style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.jpg",description:"This map service presents detailed USGS topographic maps for the United States at multiple scales.",attribution:"© 2011 National Geographic Society, i-cubed",format:"jpg",type:"baselayer"},G={name:"ESRI World Imagery",categories:["esri","imagery","world"],url:"https://services.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer/WMTS/tile/1.0.0/World_Imagery/{Style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.jpg",description:"This map service presents satellite imagery for the world and high-resolution imagery for the United States and other areas around the world.",attribution:"Esri, DigitalGlobe, Earthstar Geographics, CNES/Airbus DS, GeoEye, USDA FSA, USGS, Getmapping, Aerogrid, IGN, IGP, and the GIS User Community",format:"jpg",type:"baselayer"},j={name:"ESRI World Street Map",categories:["esri","street","world"],url:"https://services.arcgisonline.com/arcgis/rest/services/World_Street_Map/MapServer/WMTS/tile/1.0.0/World_Topo_Map/{Style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.jpg",description:"This map service presents highway-level data for the world and street-level data for North America, Europe, Africa, parts of the Middle East, Asia, and more.",attribution:"Esri, HERE, DeLorme, USGS, Intermap, INCREMENT P, NRCAN, Esri Japan, METI, Esri China (Hong Kong), Esri (Thailand), MapmyIndia, © OpenStreetMap contributors, and the GIS User Community",format:"jpg",type:"baselayer"},z={name:"ESRI World Topographic Map",categories:["esri","topo","topographic","world"],url:"https://services.arcgisonline.com/arcgis/rest/services/World_Topo_Map/MapServer/WMTS/tile/1.0.0/World_Imagery/{Style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.jpg",description:"This world topographic map includes boundaries, cities, water features, physiographic features, parks, landmarks, transportation, and buildings.",attribution:"Esri, HERE, DeLorme, Intermap, INCREMENT P, GEBCO, USGS, FAO, NPS, NRCAN, GeoBase, IGN, Kadaster NL, Ordnance Survey, Esri Japan, METI, Esri China (Hong Kong), swisstopo, MapmyIndia, © OpenStreetMap contributors, GIS User Community",format:"jpg",type:"baselayer"};var C=Object.freeze({natgeo:I,ocean:O,usatopo:N,imagery:G,street:j,topo:z});const W={name:"OpenStreetMap Standard",categories:["openstreetmap","standard","world"],url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",description:"Tiles from OpenStreetMap",attribution:"Map data © OpenStreetMap",format:"png",type:"baselayer"},R={name:"OpenStreetMap Cycle Map",categories:["openstreetmap","cycle","world"],url:"https://{s}.tile.thunderforest.com/cycle/{z}/{x}/{y}.png",description:"Tiles from OpenStreetMap",attribution:"Map data © OpenStreetMap",format:"png",type:"baselayer"},A={name:"OpenStreetMap Humanitarian",categories:["openstreetmap","hot","humanitarian","world"],url:"https://tile-{s}.openstreetmap.fr/hot/{z}/{x}/{y}.png",description:"Tiles from OpenStreetMap",attribution:"Map data © OpenStreetMap",format:"png",type:"baselayer"},_={name:"OpenStreetMap Transport Map",categories:["openstreetmap","transport","world"],url:"https://{s}.tile.thunderforest.com/transport/{z}/{x}/{y}.png",description:"Tiles from OpenStreetMap",attribution:"Map data © OpenStreetMap",format:"png",type:"baselayer"},k={name:"OpenStreetMap Wikimedia",categories:["openstreetmap","wikimedia","world"],url:"https://maps.wikimedia.org/osm-intl/{z}/{x}/{y}.png",description:"Tiles from OSM",attribution:"Map data © OSM",format:"png",type:"baselayer"},U={name:"OpenStreetMap Lyrk",categories:["openstreetmap","lyrk","world"],url:"https://tiles.lyrk.org/ls/{z}/{x}/{y}?apikey=6e8cfef737a140e2a58c8122aaa26077",description:"Tiles from OpenStreetMap",attribution:"Map data © OpenStreetMap",format:"png",type:"baselayer"};var P=Object.freeze({standard:W,cycle:R,hot:A,transport:_,wikimedia:k,lyrk:U});const D={name:"Strava Cycling & Running",categories:["strava","cycling","running","world"],url:"https://globalheat.strava.com/tiles/both/color/{z}/{x}/{y}.png",description:"Tiles from Strava",attribution:"Map data © Strava",format:"png",type:"overlay"};var L=Object.freeze({both:D});const q={attribution:"© DigitalGlobe, © OpenStreetMap, © Mapbox",categories:["digitalglobe","dg","imagery","street","hybrid","world"],description:"Tiles from DigitalGlobe",name:"DigitalGlobe Hybrid",format:"jpg",url:"https://{s}.tiles.mapbox.com/v4/digitalglobe.nal0mpda/{z}/{x}/{y}",type:"baselayer"},F={name:"DigitalGlobe Imagery",categories:["digitalgloble","dg","imagery","world"],url:"https://{s}.tiles.mapbox.com/v4/digitalglobe.nal0g75k/{z}/{x}/{y}",description:"Tiles from DigitalGlobe",attribution:"© DigitalGlobe",format:"jpg",type:"baselayer"};var B=Object.freeze({hybrid:q,imagery:F});const H={name:"Mapbox Outdoors",categories:["mapbox","classic","outdoors","topo","world"],url:"https://{s}.tiles.mapbox.com/v4/aj.um7z9lus/{z}/{x}/{y}.png?access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpbG10dnA3NzY3OTZ0dmtwejN2ZnUycjYifQ.1W5oTOnWXQ9R1w8u3Oo1yA",description:"Tiles from Mapbox",attribution:"© Mapbox, OpenStreetMap",format:"png",type:"overlay"},Y={name:"Mapbox Imagery",categories:["mapbox","imagery","world"],url:"https://{s}.tiles.mapbox.com/v4/openstreetmap.map-inh7ifmo/{z}/{x}/{y}.jpg?access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpbG10dnA3NzY3OTZ0dmtwejN2ZnUycjYifQ.1W5oTOnWXQ9R1w8u3Oo1yA",description:"Tiles from Mapbox",attribution:"© Mapbox, OpenStreetMap",format:"jpg",type:"baselayer"};var J=Object.freeze({outdoors:H,imagery:Y}),Q=Object.freeze({digitalglobe:B,mapbox:J,esri:C,bing:x,openstreetmap:P,strava:L});e.providers=Q,e.parse=f,e.wms=M,e.wmts=S,e.parseSwitch=w,e.sample=v,Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r(e.slippyTile=e.slippyTile||{})}(this,function(e){"use strict";function r(e){return e=e||256,2*Math.PI*6378137/e}function t(e){u(e);var r=e[0],t=e[1],a=r*T/180,i=Math.log(Math.tan((90+t)*Math.PI/360))/(Math.PI/180);return i=i*T/180,a=Number(a.toFixed(1)),i=Number(i.toFixed(1)),[a,i]}function a(e){var r=e[0],t=e[1],a=r/T*180,i=t/T*180;return i=180/Math.PI*(2*Math.atan(Math.exp(i*Math.PI/180))-Math.PI/2),a=Number(a.toFixed(6)),i=Number(i.toFixed(6)),[a,i]}function i(e,r){y(e);var t=e[0],a=e[1],i=e[2],o=h(i,r),n=t*o-T,s=a*o-T;return n=Number(n.toFixed(1)),s=Number(s.toFixed(1)),[n,s]}function o(e,r){r=r||256,g(e);var t=e[0],a=e[1],o=e[2],n=i([t*r,a*r,o]),s=i([(t+1)*r,(a+1)*r,o]);return[n[0],n[1],s[0],s[1]]}function n(e){g(e);var r=e[0],t=e[1],i=e[2];if(0===i)return[-180,-85.051129,180,85.051129];var n=o([r,t,i]),s=n[0],p=n[1],l=n[2],c=n[3],m=a([s,p,i]),d=a([l,c,i]);return[m[0],m[1],d[0],d[1]]}function s(e){var r=p(e);return n(r)}function p(e){var r=e[0],t=e[1],a=e[2],i=r,o=Math.pow(2,a)-t-1;return[i,o,a]}function l(e){var r=p(e);return c(r)}function c(e){g(e);var r=e[0],t=e[1],a=e[2];if(0===a)return"";var i="";return t=Math.pow(2,a)-1-t,b(a,0,-1).map(function(e){var a=0,o=1<<e-1;0!==(r&o)&&(a+=1),0!==(t&o)&&(a+=2),i=i.concat(a)}),i}function m(e){var r=t([e[0],e[1]]),a=t([e[2],e[3]]);return[r[0],r[1],a[0],a[1]]}function g(e){var r=e[0],t=e[1],a=e[2];if(d(a),void 0===r||null===r)throw new Error("<x> is required");if(void 0===t||null===t)throw new Error("<y> is required");if(r<0)throw new Error("<x> must not be less than 0");if(t<0)throw new Error("<y> must not be less than 0");var i=Math.pow(2,a);if(r>=i||t>=i)throw new Error("Illegal parameters for tile");return e}function d(e){if(void 0===e||null===e)throw new Error("<zoom> is required");if(e<0)throw new Error("<zoom> cannot be less than 0");if(e>30)throw new Error("<zoom> cannot be greater than 30");return e}function u(e){var r=e[0],t=e[1];if(void 0===t||null===t)throw new Error("<lat> is required");if(void 0===r||null===r)throw new Error("<lng> is required");if(t<-90||t>90)throw new Error("LngLat <lat> must be within -90 to 90 degrees");if(r<-180||r>180)throw new Error("LngLat <lng> must be within -180 to 180 degrees");return[r,t]}function y(e){return e}function h(e,t){return r(t)/Math.pow(2,e)}function b(e,r,t){null==r&&(r=e||0,e=0),t||(t=r<e?-1:1);for(var a=Math.max(Math.ceil((r-e)/t),0),i=Array(a),o=0;o<a;o++,e+=t)i[o]=e;return i}function f(e,r){var t=e[0],a=e[1],i=e[2];if(r=M(e,r),r=S(r),r=w(r),r=r.replace(/{(zoom|z|level)}/,String(i)),r=r.replace(/{(x|col)}/,String(t)),r=r.replace(/{(y|row)}/,String(a)),r.match(/{-y}/)&&(r=r.replace(/{-y}/,String(p(e)[1]))),r.match(/{(quadkey|q)}/)&&(r=r.replace(/{(quadkey|q)}/,l(e))),r.match(/{.*}/))throw new Error("Could not completly parse URL"+r);return r}function M(e,r){r=r.replace(/{height}/gi,"256"),r=r.replace(/{width}/gi,"256"),r=r.replace(/{(proj|srs|crs)}/gi,"EPSG:3857");var t;return t=r.match(/EPSG:(3857|900913)/i)?m(s(e)):s(e),r.match(/{bbox}/i)&&(r=r.replace(/{bbox}/gi,t.join(","))),r}function S(e){return e=e.replace(/{TileCol}/gi,"{x}"),e=e.replace(/{TileRow}/gi,"{y}"),e=e.replace(/{TileMatrix}/gi,"{z}"),e=e.replace(/{TileMatrixSet}/gi,"GoogleMapsCompatible"),e=e.replace(/{Style}/gi,"default")}function w(e){if(e.match(/{s}/))return e.replace(/{s}/gi,String(v(["a","b","c"])));var r=/{switch:([a-z,\d]*)}/,t=e.match(r);return t?e.replace(r,String(v(t[1].split(",")))):e}function v(e){return e[Math.floor(Math.random()*e.length)]}var T=2*Math.PI*6378137/2;const E={name:"Bing Imagery",categories:["bing","imagery","world"],url:"https://ecn.t{switch:0,1,2,3}.tiles.virtualearth.net/tiles/a{quadkey}.jpeg?g=5250",description:"Tiles from Bing",attribution:"Map data © Bing",format:"jpg",type:"baselayer"};var x=Object.freeze({imagery:E});const I={name:"ESRI National Geographic World Map",categories:["esri","national","geographic","world"],url:"https://services.arcgisonline.com/arcgis/rest/services/NatGeo_World_Map/MapServer/WMTS/tile/1.0.0/World_Imagery/{Style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.jpg",description:"This map is designed to be used as a general reference map for informational and educational purposes as well as a basemap by GIS professionals and other users for creating web maps and web mapping applications.",attribution:"National Geographic, Esri, DeLorme, HERE, UNEP-WCMC, USGS, NASA, ESA, METI, NRCAN, GEBCO, NOAA, INCREMENT P",format:"jpg",type:"baselayer"},O={name:"ESRI Ocean Basemap",categories:["esri","ocean","world"],url:"https://services.arcgisonline.com/arcgis/rest/services/Ocean_Basemap/MapServer/WMTS/tile/1.0.0/World_Imagery/{Style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.jpg",description:"The ocean basemap includes bathymetry, surface and subsurface feature names, and derived depths. This service is designed to be used as a basemap by marine GIS professionals and as a reference map by anyone interested in ocean data.",attribution:"Esri, GEBCO, NOAA, National Geographic, DeLorme, HERE, Geonames.org, and other contributors",format:"jpg",type:"baselayer"},N={name:"ESRI USA Topo Maps",categories:["esri","topo","topographicusa"],url:"https://services.arcgisonline.com/arcgis/rest/services/USA_Topo_Maps/MapServer/WMTS/tile/1.0.0/World_Imagery/{Style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.jpg",description:"This map service presents detailed USGS topographic maps for the United States at multiple scales.",attribution:"© 2011 National Geographic Society, i-cubed",format:"jpg",type:"baselayer"},G={name:"ESRI World Imagery",categories:["esri","imagery","world"],url:"https://services.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer/WMTS/tile/1.0.0/World_Imagery/{Style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.jpg",description:"This map service presents satellite imagery for the world and high-resolution imagery for the United States and other areas around the world.",attribution:"Esri, DigitalGlobe, Earthstar Geographics, CNES/Airbus DS, GeoEye, USDA FSA, USGS, Getmapping, Aerogrid, IGN, IGP, and the GIS User Community",format:"jpg",type:"baselayer"},j={name:"ESRI World Street Map",categories:["esri","street","world"],url:"https://services.arcgisonline.com/arcgis/rest/services/World_Street_Map/MapServer/WMTS/tile/1.0.0/World_Topo_Map/{Style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.jpg",description:"This map service presents highway-level data for the world and street-level data for North America, Europe, Africa, parts of the Middle East, Asia, and more.",attribution:"Esri, HERE, DeLorme, USGS, Intermap, INCREMENT P, NRCAN, Esri Japan, METI, Esri China (Hong Kong), Esri (Thailand), MapmyIndia, © OpenStreetMap contributors, and the GIS User Community",format:"jpg",type:"baselayer"},z={name:"ESRI World Topographic Map",categories:["esri","topo","topographic","world"],url:"https://services.arcgisonline.com/arcgis/rest/services/World_Topo_Map/MapServer/WMTS/tile/1.0.0/World_Imagery/{Style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.jpg",description:"This world topographic map includes boundaries, cities, water features, physiographic features, parks, landmarks, transportation, and buildings.",attribution:"Esri, HERE, DeLorme, Intermap, INCREMENT P, GEBCO, USGS, FAO, NPS, NRCAN, GeoBase, IGN, Kadaster NL, Ordnance Survey, Esri Japan, METI, Esri China (Hong Kong), swisstopo, MapmyIndia, © OpenStreetMap contributors, GIS User Community",format:"jpg",type:"baselayer"};var C=Object.freeze({natgeo:I,ocean:O,usatopo:N,imagery:G,street:j,topo:z});const W={name:"OpenStreetMap Standard",categories:["openstreetmap","standard","world"],url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",description:"Tiles from OpenStreetMap",attribution:"Map data © OpenStreetMap",format:"png",type:"baselayer"},R={name:"OpenStreetMap Cycle Map",categories:["openstreetmap","cycle","world"],url:"https://{s}.tile.thunderforest.com/cycle/{z}/{x}/{y}.png",description:"Tiles from OpenStreetMap",attribution:"Map data © OpenStreetMap",format:"png",type:"baselayer"},A={name:"OpenStreetMap Humanitarian",categories:["openstreetmap","hot","humanitarian","world"],url:"https://tile-{s}.openstreetmap.fr/hot/{z}/{x}/{y}.png",description:"Tiles from OpenStreetMap",attribution:"Map data © OpenStreetMap",format:"png",type:"baselayer"},_={name:"OpenStreetMap Transport Map",categories:["openstreetmap","transport","world"],url:"https://{s}.tile.thunderforest.com/transport/{z}/{x}/{y}.png",description:"Tiles from OpenStreetMap",attribution:"Map data © OpenStreetMap",format:"png",type:"baselayer"},k={name:"OpenStreetMap Wikimedia",categories:["openstreetmap","wikimedia","world"],url:"https://maps.wikimedia.org/osm-intl/{z}/{x}/{y}.png",description:"Tiles from OSM",attribution:"Map data © OSM",format:"png",type:"baselayer"},U={name:"OpenStreetMap Lyrk",categories:["openstreetmap","lyrk","world"],url:"https://tiles.lyrk.org/ls/{z}/{x}/{y}?apikey=6e8cfef737a140e2a58c8122aaa26077",description:"Tiles from OpenStreetMap",attribution:"Map data © OpenStreetMap",format:"png",type:"baselayer"};var P=Object.freeze({standard:W,cycle:R,hot:A,transport:_,wikimedia:k,lyrk:U});const D={name:"Strava Cycling & Running",categories:["strava","cycling","running","world"],url:"https://globalheat.strava.com/tiles/both/color/{z}/{x}/{y}.png",description:"Tiles from Strava",attribution:"Map data © Strava",format:"png",type:"overlay"};var L=Object.freeze({both:D});const q={attribution:"© DigitalGlobe, © OpenStreetMap, © Mapbox",categories:["digitalglobe","dg","imagery","street","hybrid","world"],description:"Tiles from DigitalGlobe",name:"DigitalGlobe Hybrid",format:"jpg",url:"https://{s}.tiles.mapbox.com/v4/digitalglobe.nal0mpda/{z}/{x}/{y}",type:"baselayer"},F={name:"DigitalGlobe Imagery",categories:["digitalgloble","dg","imagery","world"],url:"https://{s}.tiles.mapbox.com/v4/digitalglobe.nal0g75k/{z}/{x}/{y}",description:"Tiles from DigitalGlobe",attribution:"© DigitalGlobe",format:"jpg",type:"baselayer"};var B=Object.freeze({hybrid:q,imagery:F});const H={name:"Mapbox Outdoors",categories:["mapbox","classic","outdoors","topo","world"],url:"https://{s}.tiles.mapbox.com/v4/aj.um7z9lus/{z}/{x}/{y}.png?access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpbG10dnA3NzY3OTZ0dmtwejN2ZnUycjYifQ.1W5oTOnWXQ9R1w8u3Oo1yA",description:"Tiles from Mapbox",attribution:"© Mapbox, OpenStreetMap",format:"png",type:"overlay"},Y={name:"Mapbox Imagery",categories:["mapbox","imagery","world"],url:"https://{s}.tiles.mapbox.com/v4/openstreetmap.map-inh7ifmo/{z}/{x}/{y}.jpg?access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpbG10dnA3NzY3OTZ0dmtwejN2ZnUycjYifQ.1W5oTOnWXQ9R1w8u3Oo1yA",description:"Tiles from Mapbox",attribution:"© Mapbox, OpenStreetMap",format:"jpg",type:"baselayer"};var J=Object.freeze({outdoors:H,imagery:Y}),Q=Object.freeze({digitalglobe:B,mapbox:J,esri:C,bing:x,openstreetmap:P,strava:L});e.providers=Q,e.parse=f,e.wms=M,e.wmts=S,e.parseSwitch=w,e.sample=v,Object.defineProperty(e,"__esModule",{value:!0})});
{
"name": "slippy-tile",
"version": "1.10.0",
"version": "1.10.1",
"description": "Helps convert Slippy Map url tile schemas",

@@ -5,0 +5,0 @@ "main": "dist/slippy-tile.js",

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