Hello. I've been looking for some orientation on the web on how to implement and manage overlay layers in leaflet. It seems that in Drupal the contrib module OpenLayers deals with it, but as I don't see that module available in Backdrop, I was hoping to have some orientation from you guys. Thank you.
Comments
Hi jcesar,
it may depend on what kind overlay you need. Overlays are supported in the Leaflet module.
The submodule leaflet_more_maps ships with a lot of additional map types. And there's some user interface to combine layers there.
If you need something entirely custom, you can use a hook for that.
If you only need to slightly adapt an existing map, there's another hook for that - hook_leaflet_map_prebuild_alter(). More likely that's what you're after.
I never used OpenLayers, so I can't describe the differences, nor what it takes to migrate existing code.