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!
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | gmap_node_map_macro.diff | 1.72 KB | dbassendine |
Comments
Comment #1
dbassendine commentedWell, 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.
Comment #2
bdragon commentedSuggest using georss.