javascript - combining overlays in mapbox / leaflet layers control -
I am trying to combine 2 or more overlays in an overlay checkbox. I am using the bookmark with mapbox.js 1.6 to toggle my overlays. If I add them to a data layer on mapbox.com, or if I combine different data layers in an overlay checkbox in my JS code, then I do not make any difference, but I can not do it I am exporting MBTiles to my Mapbox account.
Note that this is not an option:
- Tilemil them (a zoom level and square bounding box
- A map project on Mapbox.com Add different data layers in (I want it to be toggleblog by user)
You can use the L. layer group to combine
var group = L. Add layer layers for group group ([layer 1, layer 2]; // maple. Layer 1); // Switcher control var controlLayers = L.control.layers (Baselier) .addTo (map);You may be interested in this thread
Comments
Post a Comment