I'm currently rebuilding a Drupal 7 website which had some custom modules coded for the following purposes:
- Creating a legend using the Base Layers and Overlay/Layers to display as a block next to a views-powered map.
- Save the legend state with hooks every time a node form is saved/altered - the state was dumped into a plain text field on the node hidden from the node author and public (to then be loaded upon node display so that the map loads with the active layers visible when the node was saved.)
- Hides the geofield from the node form - you select a map annotation from the main views-powered map rather than one embedded into the node add/edit form itself.
After playing with Openlayers and Openlayers Plus for a few weeks, I see the merit to creating a custom legend - the Layerswitcher and Blockswitcher blocks don't organize layers into any grouping and make styling them into more of a legend UI difficult.
However, I want to keep this new site build clean from custom code and am looking for help finding best approaches to affording the above functionality through existing module configuration or other recommendations.
One clue I have to solving this is that the Permalink behavior works to create a URL path with all the active layers referenced; perhaps there's a simply way to load a node using a permalink which is auto-saved before the node is saved using the active layers in the node?
Thoughts/Comments?
*I've posted a related issue here:
https://drupal.org/node/2096497
Thanks,
Qasim
