diff --git a/lib/map.js b/lib/map.js index 6d43efc..f0698ea 100644 --- a/lib/map.js +++ b/lib/map.js @@ -84,6 +84,12 @@ define(['map/clientlayer', 'map/labellayer', 'map/button', 'leaflet', 'map/activ map.on('dragend', saveView); map.on('contextmenu', contextMenuOpenLayerMenu); + if (config.geo) { + [].forEach.call(config.geo, function (geo) { + L.geoJSON(geo.json, geo.option).addTo(map); + }); + } + button.init(); layerControl = L.control.layers(baseLayers, [], { position: 'bottomright' });