Provide Gmap marker field for use in Views listing
keyone - February 9, 2009 - 16:58
| Project: | GMap Module |
| Version: | 6.x-1.x-dev |
| Component: | User interface |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
I am trying to create a View of content which is tagged with different Gmap markers, and I want to show the marker in the view. All I can figure out is to list the name of the marker "small green". That is not nearly as useful as showing the marker icon for "small green".
To see what I mean, go here:
http://www.interstateeateries.com/list
Any way to show the icon in a View rather than the name of the icon? Thanks!

#1
Unfortunately that page is showing a table view not a GMap view so I can't say for sure, but..... it sounds like the marker files aren't in the right place so it's using the alt text for the image as it can't find the image file itself. Check they're there and accessible
#2
Thanks for the reply. The markers do show up properly in the Gmap view, which is here:
http://interstateeateries.com/map/node
I guess I explained it wrong. I want markers in the table view. The reason I want the markers to show up in table view is that they are color coded according to taxonomoy.
#3
Oh, don't know I'm afraid. Might have to use http://drupal.org/project/taxonomy_image and duplicate the images
#4
Under style: GMap in your view try clicking on the setting icon next to where it says GMap. An option box should appear below the view with some options:
Marker handling:
By content type (for node views)
By term (for node views)
Use single marker type
Check the one you want (i.e. the same market for content types, or the same marker for nodes in a certain taxonomy).
Personally I wish this were more fine grained - a market via taxonomy term for a certain content type, and a market by content type for all other content types.
#5
What I would like (and I think what keyone was asking for) is for the GMap module to provide a field that would contain the marker used for that particular result on the map itself. For an example of this, please see the attached screenshot (not created with on a Drupal site, but demonstrates the basic idea). I'm using numbered markers, and though I can print the number with the view result it would look even nicer if instead of printing the number I could just display the marker next to the result.