Merge pull request #129 from nbtetreault/patch-1

Set tms option for custom layer
This commit is contained in:
Adrià Mercader 2016-01-13 18:38:10 +01:00
commit 11b13cd132
1 changed files with 1 additions and 0 deletions

View File

@ -52,6 +52,7 @@
// Custom XYZ layer
baseLayerUrl = mapConfig['custom.url'];
if (mapConfig.subdomains) leafletBaseLayerOptions.subdomains = mapConfig.subdomains;
if (mapConfig.tms) leafletBaseLayerOptions.tms = mapConfig.tms;
leafletBaseLayerOptions.attribution = mapConfig.attribution;
} else {
// MapQuest OpenStreetMap base map