aebadirad / Leaflet.AutoLayers

A dynamic leaflet layers control that pulls from multiple mapservers and manages basemaps and overlays plus order
MIT License
31 stars 21 forks source link

continuousWorld settings not working #5

Closed CleberDSantos closed 7 years ago

CleberDSantos commented 7 years ago

At leaflet-autolayers.js line 382, i was needed change follow code :

continuousWorld: mapConfig.continuousWorld ? mapConfig.continuousWorld : true,

to: continuousWorld: mapConfig.continuousWorld != undefined ? mapConfig.continuousWorld : true,

Data input example: { "continuousWorld":false, "selectedBasemap":"World_Street_Map", "mapServers":[ { "url":"http://services.arcgisonline.com/arcgis/rest/services", "dictionary":"http://services.arcgisonline.com/arcgis/rest/services?f=pjson", "tileUrl":"/MapServer/tile/{z}/{y}/{x}", "name":"ArcGIS Online", "type":"esri", "baseLayers":[ "World_Street_Map" ] } ]}

aebadirad commented 7 years ago

I've updated and addressed continuous world, it should function as intended now.

aebadirad commented 7 years ago

Assuming the fix to this worked and will close the issue, please open a new one if there's anything else that needs to be done.