Closed rbonillajr closed 7 years ago
L.mapbox.map('map', 'rbonillajr.ni98o7h3,rbonillajr.Provincias')
is a shortcut that adds a tileLayer, as well as a gridLayer and gridControl. If you don't use this shortcut and instead add the provinces layer in a layer selector, you'll need to add the gridLayer and gridcontrol yourself. See for an example, this example: https://www.mapbox.com/mapbox.js/example/v1.0.0/gridlayer-gridcontrol/
Hi i need use L.control.layers(layers, overlays).addTo(map); because my app have plugin for change basemap.
L.control.layers run good but don't show tooltips
mi code is first example. second example is for demo of i need with using first example.
thanks
Closing; you'll need to use L.mapbox.tileLayer then, and respond to the Leaflet-sent events to swap out the grid layers.
https://www.mapbox.com/mapbox.js/example/v1.0.0/toggle-baselayers/
In my test using tooltips config into TileMill and if you using this examples don't show tooltips
if using this example show tooltips and not using Toggling Baselayers