Posted by sliiiiiide on September 7, 2007 at 10:49am
Jump to:
| Project: | GMap Module |
| Version: | 5.x-1.x-dev |
| Component: | Miscellaneous |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (duplicate) |
Issue Summary
Would be great to have this feature - assign a different marker type for different taxonomy terms (or content types), when using a gmap view...
Comments
#1
This issue ( http://drupal.org/node/157304 ) has given me a workaround - I will now classify content with node types instead to get different markers types in views using the gmap_location.module..
#2
I could actually really use some sort of taxonomy markers in a gmap view too, and simply using a different node type won't do the trick. I'd like to track the status of places on a map with color coding, i.e. red are proposed sites, green are complete. Currently it seems that each node would have to be recreated as a different node type to change its marker color.
Ideally, there would either be a way to set the marker for each node, or to configure the markers in views (more ideal). A solution with views would allow different maps of the same data displayed in different ways, for example, one map depicting the statuses of sites by color, and another map depicting the type of sites by color (blue=residential, yellow=retail).
From my searching so far, there doesn't seem to be a way to do this yet. Is that true?
#3
There is a way to do this as follows:
- Install the KML.module (http://drupal.org/project/kml)
- Install the patch described here: http://drupal.org/node/82725
- The second patch can be modified to be per content type and we have had success with that.
- Don't use the GMAP module, instead load the KML of the nodes you want into Gmaps (http://your.site.com/kml/term/100) where '100' is the term number.
- When you do this, Gmaps will load the KML and display using the markers you defined in the second patch. From there you can 'link to this page' and use the iFrame Gmaps generates back on your site.
Bit convoluted but works here.
#4
Marking as duplicate of http://drupal.org/node/180370.
Got the first part of this working, gmap_views support is not in yet, but should be easy to add.
#5
Hi. I created a gmap_view with a taxonomy marker. When I submit a node the taxonomy marker is not displayed but rater the name of the marker in the info window. It even displays the name "big red" in a fontcolour of red but it does not affect the marker, only the standard marker is shown. From all the posts on taxonomy markers i understand that it works but I cant figure this one out.
Please note that i am not using the gmap.location.module at all, because i dont need per content type markers.
Another thing, am i supposed to see a preview of the marker in the term create/submit page or just a dropdown list?
If I change the marker on the term it is updated immediately in the info window, so chache is not the problem here.
Thanks