Add a legend block
geodaniel - October 18, 2006 - 10:18
| Project: | GMap Addons |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs work |
Jump to:
Description
It'd be nice to have a legend block that showed what content each icon represented.
The attached patch adds a block to gmap.module that lists all content types with their icons, as chosen in the gmap_location settings. Users must limit the block to pages they want it to be displayed on through the block settings.
Further improvements:
- restrict block display automatically so it only shows on pages with maps (could do this easily for map/node but for views-created maps, I'm not sure of the best way)
- only show icons that are being displayed on the map (again, not sure the best way - is there a global variable I can get access to from within the block?)
- Improve the default CSS to make it prettier
| Attachment | Size |
|---|---|
| legendblock.diff | 2.21 KB |

#1
Punting to gmap_addons.