Closed amenk closed 9 years ago
Use case: Initialize 3D buildings but show them only after selection in the layer control.
Currently a map object must be supplied on initialization - so we can not add it to the layer control without directly showing the buildings.
Current workaround: Remove layer immediately after initialization.
changed by a3b57a7427d476e5848d6a9378c1b5618bcd9317
You can now do:
var osmb = new OSMBuildings(); L.control.layers({}, { Buildings:osmb }).addTo(map); osmb.addTo(map).load()
Cool thanks
Use case: Initialize 3D buildings but show them only after selection in the layer control.
Currently a map object must be supplied on initialization - so we can not add it to the layer control without directly showing the buildings.
Current workaround: Remove layer immediately after initialization.