Display node location points in macros?

tonderai - July 28, 2007 - 10:10
Project:GMap Module
Version:4.7.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:won't fix
Description

Is it possible pull in the node location data (from location.module) into a gmap macro, displaying the points on the map?

This would be an incredibly useful feature, if not, because I need to be able to display several different maps of the node data. My node locations are globally distributed, and I need to focus on certain continents and regions on different pages.

Thanks!

#1

tonderai - August 6, 2007 - 11:58
Component:Miscellaneous» Code

Well, I have done this by modifying gmap_location_node_page() in gmap_location.module (4.7.1-dev) to accept any macro as a variable.

At the moment the macro is fixed to the one variable set in admin>settings>gmap_location. Now you can call gmap_location_node_page($nid,$macro), and the node location data is displayed on $macro. If $macro is not set, the node location map defaults back to the global setting.

AttachmentSize
gmap_node_map_macro.diff 1.72 KB

#2

bdragon - May 28, 2008 - 22:53
Status:active» won't fix

Suggest using georss.

 
 

Drupal is a registered trademark of Dries Buytaert.