forked from Snck3rs/contao-leaflet-libraries
Update leaflet providers to 1.1.17
This commit is contained in:
1 parent
170c7e8d8e
commit
ad4b61f696
8 files changed
+72
-25
No files matched your search
@@ -13,7 +13,7 @@ Contao CMS.
|
|||||||
This package contains following packages:
|
This package contains following packages:
|
||||||
|
|
||||||
- [leaflet 1.1.0](http://leafletjs.com)
|
- [leaflet 1.1.0](http://leafletjs.com)
|
||||||
- [Leaflet-providers 1.1.15](http://leaflet-extras.github.io/leaflet-providers)
|
- [Leaflet-providers 1.1.17](http://leaflet-extras.github.io/leaflet-providers)
|
||||||
- [Leaflet.markercluster 1.0.6](https://github.com/Leaflet/Leaflet.markercluster)
|
- [Leaflet.markercluster 1.0.6](https://github.com/Leaflet/Leaflet.markercluster)
|
||||||
- [Leaflet-omnivore 0.3.4](https://github.com/mapbox/leaflet-omnivore)
|
- [Leaflet-omnivore 0.3.4](https://github.com/mapbox/leaflet-omnivore)
|
||||||
- [Leaflet.loading 0.1.24](https://github.com/ebrelsford/Leaflet.loading)
|
- [Leaflet.loading 0.1.24](https://github.com/ebrelsford/Leaflet.loading)
|
||||||
|
|||||||
@@ -1,6 +1,22 @@
|
|||||||
|
|
||||||
# Leaflet-providers changelog
|
# Leaflet-providers changelog
|
||||||
|
|
||||||
|
## 1.1.17 (2017-06-29)
|
||||||
|
- Added `maxZoom` for `Hydda` provider [242](https://github.com/leaflet-extras/leaflet-providers/pull/242)
|
||||||
|
- Fixed `maxZoom` for all layers from the `thunderforest` provider
|
||||||
|
- Added protocol relativity to the url for `OpenStreetMap.DE` variant.
|
||||||
|
- Added `OpenStreetMap.BZH` [#255](https://github.com/leaflet-extras/leaflet-providers/pull/255)
|
||||||
|
- Added `nlmaps` provider [#254](https://github.com/leaflet-extras/leaflet-providers/pull/254)
|
||||||
|
|
||||||
|
## 1.1.16 (2016-11-04)
|
||||||
|
- Updates to reflect changes in [BasemapAT](http://leaflet-extras.github.io/leaflet-providers/preview/#filter=BasemapAT) by [@ximex](https://github.com/ximex), [#232]((https://github.com/leaflet-extras/leaflet-providers/pull/232), [#233]((https://github.com/leaflet-extras/leaflet-providers/pull/233)
|
||||||
|
- Bump leaflet version in tests and preview to 1.0.1.
|
||||||
|
- Added some layers from http://justicemap.org [#224](https://github.com/leaflet-extras/leaflet-providers/pull/224).
|
||||||
|
|
||||||
|
## 1.1.15 (2016-08-09)
|
||||||
|
- [Stamen terrain](http://leaflet-extras.github.io/leaflet-providers/preview/#filter=Stamen.Terrain) now has world coverage [#223](https://github.com/leaflet-extras/leaflet-providers/pull/223)
|
||||||
|
- OSM France `maxZoom`: 20 ([#222](https://github.com/leaflet-extras/leaflet-providers/pull/222), fixes [#221](https://github.com/leaflet-extras/leaflet-providers/issues/221))
|
||||||
|
|
||||||
## 1.1.14 (2016-07-15)
|
## 1.1.14 (2016-07-15)
|
||||||
- Remove MapQuest, fixes #219
|
- Remove MapQuest, fixes #219
|
||||||
- Accidently skipped v1.1.12 and v1.1.13
|
- Accidently skipped v1.1.12 and v1.1.13
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "leaflet-providers",
|
"name": "leaflet-providers",
|
||||||
"version": "1.1.15",
|
"version": "1.1.17",
|
||||||
"homepage": "https://github.com/leaflet-extras/leaflet-providers",
|
"homepage": "https://github.com/leaflet-extras/leaflet-providers",
|
||||||
"description": "An extension to Leaflet that contains configurations for various free tile providers.",
|
"description": "An extension to Leaflet that contains configurations for various free tile providers.",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||||
<!-- Leaflet style. REQUIRED! -->
|
<!-- Leaflet style. REQUIRED! -->
|
||||||
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.0-rc.1/leaflet.css" />
|
<link rel="stylesheet" href="http://unpkg.com/leaflet@1.0.3/dist/leaflet.css" />
|
||||||
<style>
|
<style>
|
||||||
html { height: 100% }
|
html { height: 100% }
|
||||||
body { height: 100%; margin: 0; padding: 0;}
|
body { height: 100%; margin: 0; padding: 0;}
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div id="map" class="map"></div>
|
<div id="map" class="map"></div>
|
||||||
|
|
||||||
<script src="//cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.0-rc.1/leaflet.js"></script>
|
<script src="http://unpkg.com/leaflet@1.0.3/dist/leaflet.js"></script>
|
||||||
<script src="leaflet-providers.js"></script>
|
<script src="leaflet-providers.js"></script>
|
||||||
<script>
|
<script>
|
||||||
var map = L.map('map', {
|
var map = L.map('map', {
|
||||||
@@ -46,7 +46,6 @@
|
|||||||
'Thunderforest Transport': L.tileLayer.provider('Thunderforest.Transport'),
|
'Thunderforest Transport': L.tileLayer.provider('Thunderforest.Transport'),
|
||||||
'Thunderforest Landscape': L.tileLayer.provider('Thunderforest.Landscape'),
|
'Thunderforest Landscape': L.tileLayer.provider('Thunderforest.Landscape'),
|
||||||
'Hydda Full': L.tileLayer.provider('Hydda.Full'),
|
'Hydda Full': L.tileLayer.provider('Hydda.Full'),
|
||||||
'MapBox Example': L.tileLayer.provider('MapBox', {id: 'mapbox.streets', accessToken: 'pk.eyJ1IjoiZ3V0ZW55ZSIsImEiOiJmNjJlMDNmYTUyMzNjMzQxZmY4Mzc1ZmFiYmExNjMxOSJ9.xgl1PBwQV9CtwW-usedrcQ'}),
|
|
||||||
'Stamen Toner': L.tileLayer.provider('Stamen.Toner'),
|
'Stamen Toner': L.tileLayer.provider('Stamen.Toner'),
|
||||||
'Stamen Terrain': L.tileLayer.provider('Stamen.Terrain'),
|
'Stamen Terrain': L.tileLayer.provider('Stamen.Terrain'),
|
||||||
'Stamen Watercolor': L.tileLayer.provider('Stamen.Watercolor'),
|
'Stamen Watercolor': L.tileLayer.provider('Stamen.Watercolor'),
|
||||||
|
|||||||
@@ -110,7 +110,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
DE: {
|
DE: {
|
||||||
url: 'http://{s}.tile.openstreetmap.de/tiles/osmde/{z}/{x}/{y}.png',
|
url: '//{s}.tile.openstreetmap.de/tiles/osmde/{z}/{x}/{y}.png',
|
||||||
options: {
|
options: {
|
||||||
maxZoom: 18
|
maxZoom: 18
|
||||||
}
|
}
|
||||||
@@ -144,30 +144,29 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
Thunderforest: {
|
Thunderforest: {
|
||||||
url: '//{s}.tile.thunderforest.com/{variant}/{z}/{x}/{y}.png',
|
url: '//{s}.tile.thunderforest.com/{variant}/{z}/{x}/{y}.png?apikey={apikey}',
|
||||||
options: {
|
options: {
|
||||||
attribution:
|
attribution:
|
||||||
'© <a href="http://www.thunderforest.com/">Thunderforest</a>, {attribution.OpenStreetMap}',
|
'© <a href="http://www.thunderforest.com/">Thunderforest</a>, {attribution.OpenStreetMap}',
|
||||||
variant: 'cycle'
|
variant: 'cycle',
|
||||||
|
apikey: '<insert your api key here>',
|
||||||
|
maxZoom: 22
|
||||||
},
|
},
|
||||||
variants: {
|
variants: {
|
||||||
OpenCycleMap: 'cycle',
|
OpenCycleMap: 'cycle',
|
||||||
Transport: {
|
Transport: {
|
||||||
options: {
|
options: {
|
||||||
variant: 'transport',
|
variant: 'transport'
|
||||||
maxZoom: 19
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
TransportDark: {
|
TransportDark: {
|
||||||
options: {
|
options: {
|
||||||
variant: 'transport-dark',
|
variant: 'transport-dark'
|
||||||
maxZoom: 19
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
SpinalMap: {
|
SpinalMap: {
|
||||||
options: {
|
options: {
|
||||||
variant: 'spinal-map',
|
variant: 'spinal-map'
|
||||||
maxZoom: 11
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
Landscape: 'landscape',
|
Landscape: 'landscape',
|
||||||
@@ -201,6 +200,7 @@
|
|||||||
Hydda: {
|
Hydda: {
|
||||||
url: '//{s}.tile.openstreetmap.se/hydda/{variant}/{z}/{x}/{y}.png',
|
url: '//{s}.tile.openstreetmap.se/hydda/{variant}/{z}/{x}/{y}.png',
|
||||||
options: {
|
options: {
|
||||||
|
maxZoom: 18,
|
||||||
variant: 'full',
|
variant: 'full',
|
||||||
attribution: 'Tiles courtesy of <a href="http://openstreetmap.se/" target="_blank">OpenStreetMap Sweden</a> — Map data {attribution.OpenStreetMap}'
|
attribution: 'Tiles courtesy of <a href="http://openstreetmap.se/" target="_blank">OpenStreetMap Sweden</a> — Map data {attribution.OpenStreetMap}'
|
||||||
},
|
},
|
||||||
@@ -216,7 +216,9 @@
|
|||||||
attribution:
|
attribution:
|
||||||
'Imagery from <a href="http://mapbox.com/about/maps/">MapBox</a> — ' +
|
'Imagery from <a href="http://mapbox.com/about/maps/">MapBox</a> — ' +
|
||||||
'Map data {attribution.OpenStreetMap}',
|
'Map data {attribution.OpenStreetMap}',
|
||||||
subdomains: 'abcd'
|
subdomains: 'abcd',
|
||||||
|
id: 'streets',
|
||||||
|
accessToken: '<insert your access token here>',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
Stamen: {
|
Stamen: {
|
||||||
@@ -528,7 +530,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
BasemapAT: {
|
BasemapAT: {
|
||||||
url: '//maps{s}.wien.gv.at/basemap/{variant}/normal/google3857/{z}/{y}/{x}.{format}',
|
url: 'https://maps{s}.wien.gv.at/basemap/{variant}/normal/google3857/{z}/{y}/{x}.{format}',
|
||||||
options: {
|
options: {
|
||||||
maxZoom: 19,
|
maxZoom: 19,
|
||||||
attribution: 'Datenquelle: <a href="www.basemap.at">basemap.at</a>',
|
attribution: 'Datenquelle: <a href="www.basemap.at">basemap.at</a>',
|
||||||
@@ -538,7 +540,12 @@
|
|||||||
variant: 'geolandbasemap'
|
variant: 'geolandbasemap'
|
||||||
},
|
},
|
||||||
variants: {
|
variants: {
|
||||||
basemap: 'geolandbasemap',
|
basemap: {
|
||||||
|
options: {
|
||||||
|
maxZoom: 20, // currently only in Vienna
|
||||||
|
variant: 'geolandbasemap'
|
||||||
|
}
|
||||||
|
},
|
||||||
grau: 'bmapgrau',
|
grau: 'bmapgrau',
|
||||||
overlay: 'bmapoverlay',
|
overlay: 'bmapoverlay',
|
||||||
highdpi: {
|
highdpi: {
|
||||||
@@ -549,6 +556,7 @@
|
|||||||
},
|
},
|
||||||
orthofoto: {
|
orthofoto: {
|
||||||
options: {
|
options: {
|
||||||
|
maxZoom: 20, // currently only in Vienna
|
||||||
variant: 'bmaporthofoto30cm',
|
variant: 'bmaporthofoto30cm',
|
||||||
format: 'jpeg'
|
format: 'jpeg'
|
||||||
}
|
}
|
||||||
@@ -628,6 +636,30 @@
|
|||||||
maxZoom: 18,
|
maxZoom: 18,
|
||||||
subdomains: '0123',
|
subdomains: '0123',
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
JusticeMap: {
|
||||||
|
// Justice Map (http://www.justicemap.org/)
|
||||||
|
// Visualize race and income data for your community, county and country.
|
||||||
|
// Includes tools for data journalists, bloggers and community activists.
|
||||||
|
url: 'http://www.justicemap.org/tile/{size}/{variant}/{z}/{x}/{y}.png',
|
||||||
|
options: {
|
||||||
|
attribution: '<a href="http://www.justicemap.org/terms.php">Justice Map</a>',
|
||||||
|
// one of 'county', 'tract', 'block'
|
||||||
|
size: 'county',
|
||||||
|
// Bounds for USA, including Alaska and Hawaii
|
||||||
|
bounds: [[14, -180], [72, -56]]
|
||||||
|
},
|
||||||
|
variants: {
|
||||||
|
income: 'income',
|
||||||
|
americanIndian: 'indian',
|
||||||
|
asian: 'asian',
|
||||||
|
black: 'black',
|
||||||
|
hispanic: 'hispanic',
|
||||||
|
multi: 'multi',
|
||||||
|
nonWhite: 'nonwhite',
|
||||||
|
white: 'white',
|
||||||
|
plurality: 'plural'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1 +1 @@
|
|||||||
!function(a,t){"function"==typeof define&&define.amd?define(["leaflet"],t):"object"==typeof modules&&module.exports?module.exports=t(require("leaflet")):t(L)}(this,function(a){"use strict";return a.TileLayer.Provider=a.TileLayer.extend({initialize:function(t,o){var r=a.TileLayer.Provider.providers,e=t.split("."),i=e[0],n=e[1];if(!r[i])throw"No such provider ("+i+")";var s={url:r[i].url,options:r[i].options};if(n&&"variants"in r[i]){if(!(n in r[i].variants))throw"No such variant of "+i+" ("+n+")";var p,m=r[i].variants[n];p="string"==typeof m?{variant:m}:m.options,s={url:m.url||s.url,options:a.Util.extend({},s.options,p)}}var l="file:"===window.location.protocol||s.options.forceHTTP;0===s.url.indexOf("//")&&l&&(s.url="http:"+s.url),s.options.retina&&(o.detectRetina&&a.Browser.retina?o.detectRetina=!1:s.options.retina="");var d=function(a){return a.indexOf("{attribution.")===-1?a:a.replace(/\{attribution.(\w*)\}/,function(a,t){return d(r[t].options.attribution)})};s.options.attribution=d(s.options.attribution);var u=a.Util.extend({},s.options,o);a.TileLayer.prototype.initialize.call(this,s.url,u)}}),a.TileLayer.Provider.providers={OpenStreetMap:{url:"//{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",options:{maxZoom:19,attribution:'© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'},variants:{Mapnik:{},BlackAndWhite:{url:"http://{s}.tiles.wmflabs.org/bw-mapnik/{z}/{x}/{y}.png",options:{maxZoom:18}},DE:{url:"http://{s}.tile.openstreetmap.de/tiles/osmde/{z}/{x}/{y}.png",options:{maxZoom:18}},France:{url:"//{s}.tile.openstreetmap.fr/osmfr/{z}/{x}/{y}.png",options:{maxZoom:20,attribution:"© Openstreetmap France | {attribution.OpenStreetMap}"}},HOT:{url:"//{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png",options:{attribution:'{attribution.OpenStreetMap}, Tiles courtesy of <a href="http://hot.openstreetmap.org/" target="_blank">Humanitarian OpenStreetMap Team</a>'}}}},OpenSeaMap:{url:"http://tiles.openseamap.org/seamark/{z}/{x}/{y}.png",options:{attribution:'Map data: © <a href="http://www.openseamap.org">OpenSeaMap</a> contributors'}},OpenTopoMap:{url:"//{s}.tile.opentopomap.org/{z}/{x}/{y}.png",options:{maxZoom:17,attribution:'Map data: {attribution.OpenStreetMap}, <a href="http://viewfinderpanoramas.org">SRTM</a> | Map style: © <a href="https://opentopomap.org">OpenTopoMap</a> (<a href="https://creativecommons.org/licenses/by-sa/3.0/">CC-BY-SA</a>)'}},Thunderforest:{url:"//{s}.tile.thunderforest.com/{variant}/{z}/{x}/{y}.png",options:{attribution:'© <a href="http://www.thunderforest.com/">Thunderforest</a>, {attribution.OpenStreetMap}',variant:"cycle"},variants:{OpenCycleMap:"cycle",Transport:{options:{variant:"transport",maxZoom:19}},TransportDark:{options:{variant:"transport-dark",maxZoom:19}},SpinalMap:{options:{variant:"spinal-map",maxZoom:11}},Landscape:"landscape",Outdoors:"outdoors",Pioneer:"pioneer"}},OpenMapSurfer:{url:"http://korona.geog.uni-heidelberg.de/tiles/{variant}/x={x}&y={y}&z={z}",options:{maxZoom:20,variant:"roads",attribution:'Imagery from <a href="http://giscience.uni-hd.de/">GIScience Research Group @ University of Heidelberg</a> — Map data {attribution.OpenStreetMap}'},variants:{Roads:"roads",AdminBounds:{options:{variant:"adminb",maxZoom:19}},Grayscale:{options:{variant:"roadsg",maxZoom:19}}}},Hydda:{url:"//{s}.tile.openstreetmap.se/hydda/{variant}/{z}/{x}/{y}.png",options:{variant:"full",attribution:'Tiles courtesy of <a href="http://openstreetmap.se/" target="_blank">OpenStreetMap Sweden</a> — Map data {attribution.OpenStreetMap}'},variants:{Full:"full",Base:"base",RoadsAndLabels:"roads_and_labels"}},MapBox:{url:"//api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token={accessToken}",options:{attribution:'Imagery from <a href="http://mapbox.com/about/maps/">MapBox</a> — Map data {attribution.OpenStreetMap}',subdomains:"abcd"}},Stamen:{url:"//stamen-tiles-{s}.a.ssl.fastly.net/{variant}/{z}/{x}/{y}.{ext}",options:{attribution:'Map tiles by <a href="http://stamen.com">Stamen Design</a>, <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a> — Map data {attribution.OpenStreetMap}',subdomains:"abcd",minZoom:0,maxZoom:20,variant:"toner",ext:"png"},variants:{Toner:"toner",TonerBackground:"toner-background",TonerHybrid:"toner-hybrid",TonerLines:"toner-lines",TonerLabels:"toner-labels",TonerLite:"toner-lite",Watercolor:{options:{variant:"watercolor",minZoom:1,maxZoom:16}},Terrain:{options:{variant:"terrain",minZoom:0,maxZoom:18}},TerrainBackground:{options:{variant:"terrain-background",minZoom:0,maxZoom:18}},TopOSMRelief:{options:{variant:"toposm-color-relief",ext:"jpg",bounds:[[22,-132],[51,-56]]}},TopOSMFeatures:{options:{variant:"toposm-features",bounds:[[22,-132],[51,-56]],opacity:.9}}}},Esri:{url:"//server.arcgisonline.com/ArcGIS/rest/services/{variant}/MapServer/tile/{z}/{y}/{x}",options:{variant:"World_Street_Map",attribution:"Tiles © Esri"},variants:{WorldStreetMap:{options:{attribution:"{attribution.Esri}Line truncated
|
!function(a,t){"function"==typeof define&&define.amd?define(["leaflet"],t):"object"==typeof modules&&module.exports?module.exports=t(require("leaflet")):t(L)}(this,function(a){"use strict";return a.TileLayer.Provider=a.TileLayer.extend({initialize:function(t,o){var r=a.TileLayer.Provider.providers,e=t.split("."),i=e[0],n=e[1];if(!r[i])throw"No such provider ("+i+")";var s={url:r[i].url,options:r[i].options};if(n&&"variants"in r[i]){if(!(n in r[i].variants))throw"No such variant of "+i+" ("+n+")";var p,m=r[i].variants[n];p="string"==typeof m?{variant:m}:m.options,s={url:m.url||s.url,options:a.Util.extend({},s.options,p)}}var l="file:"===window.location.protocol||s.options.forceHTTP;0===s.url.indexOf("//")&&l&&(s.url="http:"+s.url),s.options.retina&&(o.detectRetina&&a.Browser.retina?o.detectRetina=!1:s.options.retina="");var d=function(a){return a.indexOf("{attribution.")===-1?a:a.replace(/\{attribution.(\w*)\}/,function(a,t){return d(r[t].options.attribution)})};s.options.attribution=d(s.options.attribution);var u=a.Util.extend({},s.options,o);a.TileLayer.prototype.initialize.call(this,s.url,u)}}),a.TileLayer.Provider.providers={OpenStreetMap:{url:"//{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",options:{maxZoom:19,attribution:'© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'},variants:{Mapnik:{},BlackAndWhite:{url:"http://{s}.tiles.wmflabs.org/bw-mapnik/{z}/{x}/{y}.png",options:{maxZoom:18}},DE:{url:"//{s}.tile.openstreetmap.de/tiles/osmde/{z}/{x}/{y}.png",options:{maxZoom:18}},France:{url:"//{s}.tile.openstreetmap.fr/osmfr/{z}/{x}/{y}.png",options:{maxZoom:20,attribution:"© Openstreetmap France | {attribution.OpenStreetMap}"}},HOT:{url:"//{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png",options:{attribution:'{attribution.OpenStreetMap}, Tiles courtesy of <a href="http://hot.openstreetmap.org/" target="_blank">Humanitarian OpenStreetMap Team</a>'}}}},OpenSeaMap:{url:"http://tiles.openseamap.org/seamark/{z}/{x}/{y}.png",options:{attribution:'Map data: © <a href="http://www.openseamap.org">OpenSeaMap</a> contributors'}},OpenTopoMap:{url:"//{s}.tile.opentopomap.org/{z}/{x}/{y}.png",options:{maxZoom:17,attribution:'Map data: {attribution.OpenStreetMap}, <a href="http://viewfinderpanoramas.org">SRTM</a> | Map style: © <a href="https://opentopomap.org">OpenTopoMap</a> (<a href="https://creativecommons.org/licenses/by-sa/3.0/">CC-BY-SA</a>)'}},Thunderforest:{url:"//{s}.tile.thunderforest.com/{variant}/{z}/{x}/{y}.png?apikey={apikey}",options:{attribution:'© <a href="http://www.thunderforest.com/">Thunderforest</a>, {attribution.OpenStreetMap}',variant:"cycle",apikey:"<insert your api key here>",maxZoom:22},variants:{OpenCycleMap:"cycle",Transport:{options:{variant:"transport"}},TransportDark:{options:{variant:"transport-dark"}},SpinalMap:{options:{variant:"spinal-map"}},Landscape:"landscape",Outdoors:"outdoors",Pioneer:"pioneer"}},OpenMapSurfer:{url:"http://korona.geog.uni-heidelberg.de/tiles/{variant}/x={x}&y={y}&z={z}",options:{maxZoom:20,variant:"roads",attribution:'Imagery from <a href="http://giscience.uni-hd.de/">GIScience Research Group @ University of Heidelberg</a> — Map data {attribution.OpenStreetMap}'},variants:{Roads:"roads",AdminBounds:{options:{variant:"adminb",maxZoom:19}},Grayscale:{options:{variant:"roadsg",maxZoom:19}}}},Hydda:{url:"//{s}.tile.openstreetmap.se/hydda/{variant}/{z}/{x}/{y}.png",options:{maxZoom:18,variant:"full",attribution:'Tiles courtesy of <a href="http://openstreetmap.se/" target="_blank">OpenStreetMap Sweden</a> — Map data {attribution.OpenStreetMap}'},variants:{Full:"full",Base:"base",RoadsAndLabels:"roads_and_labels"}},MapBox:{url:"//api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token={accessToken}",options:{attribution:'Imagery from <a href="http://mapbox.com/about/maps/">MapBox</a> — Map data {attribution.OpenStreetMap}',subdomains:"abcd",id:"streets",accessToken:"<insert your access token here>"}},Stamen:{url:"//stamen-tiles-{s}.a.ssl.fastly.net/{variant}/{z}/{x}/{y}.{ext}",options:{attribution:'Map tiles by <a href="http://stamen.com">Stamen Design</a>, <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a> — Map data {attribution.OpenStreetMap}',subdomains:"abcd",minZoom:0,maxZoom:20,variant:"toner",ext:"png"},variants:{Toner:"toner",TonerBackground:"toner-background",TonerHybrid:"toner-hybrid",TonerLines:"toner-lines",TonerLabels:"toner-labels",TonerLite:"toner-lite",Watercolor:{options:{variant:"watercolor",minZoom:1,maxZoom:16}},Terrain:{options:{variant:"terrain",minZoom:0,maxZoom:18}},TerrainBackground:{options:{variant:"terrain-background",minZoom:0,maxZoom:18}},TopOSMRelief:{options:{variant:"toposm-color-relief",ext:"jpg",bounds:[[22,-132],[51,-56]]}},TopOSMFeatures:{options:{variant:"toposm-features",bounds:[[22,-132],[51,-56]],opacity:.9}}}},Esri:{url:"//server.arcgisonline.com/ArcGIS/rest/services/{variant}/MapServer/tile/{z}/{y}/{x}",options:{variant:"World_Street_Map",attrLine truncated
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "leaflet-providers",
|
"name": "leaflet-providers",
|
||||||
"version": "1.1.15",
|
"version": "1.1.17",
|
||||||
"description": "An extension to Leaflet that contains configurations for various free tile providers.",
|
"description": "An extension to Leaflet that contains configurations for various free tile providers.",
|
||||||
"main": "leaflet-providers.js",
|
"main": "leaflet-providers.js",
|
||||||
"repository": {
|
"repository": {
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "npm run lint && npm run testsuite",
|
"test": "npm run lint && npm run testsuite",
|
||||||
"testsuite": "mocha-phantomjs tests/index.html",
|
"testsuite": "phantomjs ./node_modules/mocha-phantomjs-core/mocha-phantomjs-core.js tests/index.html",
|
||||||
"lint": "eslint --config .eslintrc leaflet-providers.js index.html preview/*.js preview/*.html tests/*",
|
"lint": "eslint --config .eslintrc leaflet-providers.js index.html preview/*.js preview/*.html tests/*",
|
||||||
"min": "uglifyjs leaflet-providers.js -mc -o leaflet-providers.min.js",
|
"min": "uglifyjs leaflet-providers.js -mc -o leaflet-providers.min.js",
|
||||||
"release": "mversion patch -m"
|
"release": "mversion patch -m"
|
||||||
@@ -26,12 +26,12 @@
|
|||||||
],
|
],
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"chai": "^2.3.0",
|
"chai": "^2.3.0",
|
||||||
"eslint": "^2.7.0",
|
"eslint": "^3.16.1",
|
||||||
"eslint-plugin-html": "^1.4.0",
|
"eslint-plugin-html": "^2.0.1",
|
||||||
"mocha": "^2.2.4",
|
"mocha": "^2.2.4",
|
||||||
"mocha-phantomjs": "^3.5.3",
|
"mocha-phantomjs-core": "^2.0.1",
|
||||||
"mversion": "^1.3.0",
|
"mversion": "^1.3.0",
|
||||||
"phantomjs": "1.9.7-15",
|
"phantomjs-prebuilt": "^2.1.4",
|
||||||
"uglify-js": "^2.4.15"
|
"uglify-js": "^2.4.15"
|
||||||
},
|
},
|
||||||
"autoupdate": {
|
"autoupdate": {
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ $GLOBALS['LEAFLET_LIBRARIES']['leaflet'] = array
|
|||||||
$GLOBALS['LEAFLET_LIBRARIES']['leaflet-providers'] = array
|
$GLOBALS['LEAFLET_LIBRARIES']['leaflet-providers'] = array
|
||||||
(
|
(
|
||||||
'name' => 'Leaflet-providers',
|
'name' => 'Leaflet-providers',
|
||||||
'version' => '1.1.15',
|
'version' => '1.1.17',
|
||||||
'license' => '<a href="https://github.com/leaflet-extras/leaflet-providers/blob/master/license.md" target="_blank">BSD-2-Clause</a>',
|
'license' => '<a href="https://github.com/leaflet-extras/leaflet-providers/blob/master/license.md" target="_blank">BSD-2-Clause</a>',
|
||||||
'homepage' => 'http://leaflet-extras.github.io/leaflet-providers',
|
'homepage' => 'http://leaflet-extras.github.io/leaflet-providers',
|
||||||
'javascript' => 'assets/leaflet/libs/leaflet-providers/leaflet-providers.min.js'
|
'javascript' => 'assets/leaflet/libs/leaflet-providers/leaflet-providers.min.js'
|
||||||
|
|||||||
Reference in new issue
Block a user