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
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
AttachmentSize
legendblock.diff2.21 KB

#1

bdragon - June 13, 2008 - 15:32
Project:GMap Module» GMap Addons
Version:4.7.x-1.x-dev» 5.x-1.x-dev
Status:needs review» needs work

Punting to gmap_addons.

 
 

Drupal is a registered trademark of Dries Buytaert.