I'm using Views 3 to display nodes on a gmap. I'm trying to use a custom field created with the Field module to set the markername property. So in the View's Gmap Settings, I have the Marker Handling set to "Use marker field". Then Marker Field set to "Content: Custom_Field".
With those settings, the markername gets set to the node id. As a result, I get the javascript pop-up: "Request for invalid marker set 71!". 71 is the node id of the node that was supposed to get plotted on the gmap.
If I use a native node field like the "Title", then markername gets set properly.
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | gmap_image_field_support_for_marker_icons.patch | 3.2 KB | zviryatko |
Comments
Comment #1
diffstrat commentedAny progress on this bug? Do you need any more info from me?
Comment #2
brunogoossens commentedrelated to http://drupal.org/node/1326176
I'll make a patch for it.
Comment #3
brunogoossens commentedPatched!
Comment #4
brunogoossens commentedComment #5
diffstrat commented@ brunogoossens Thanks for the patch. It's working for me. I sure appreciate it.
Comment #6
podarok#3 needs reroll against latest head
Comment #7
podarokstatus
Comment #8
marco.abiuso.questar commentedDon't know if this is the case, but as in http://drupal.org/node/1153032, someone is using 'field_' . $marker_field_obj->field to search for the chosen field, instead of using $marker_field_obj->field_alias;
In Views 3.5 this does not work at all: the field result empty.
So change
and
With those changes I am now able to choose the markername field in my view.
Comment #9
podarok#8 - can You provide a patch against dev for testing?
Comment #10
zviryatko commentedComment #11
zviryatko commentedpatch that provide ability to select image field as marker icon in views gmap style.
Comment #12
sanchiz commentedbot status
Comment #14
podarok#11 commited
Thanks!