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!

CommentFileSizeAuthor
#1 gmap_node_map_macro.diff1.72 KBdbassendine

Comments

dbassendine’s picture

Component: Miscellaneous » Code
StatusFileSize
new1.72 KB

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.

bdragon’s picture

Status: Active » Closed (won't fix)

Suggest using georss.