Closed (fixed)
Project:
GMap Module
Version:
5.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
15 Mar 2007 at 18:02 UTC
Updated:
2 Apr 2007 at 18:19 UTC
Jump to comment: Most recent file
The settings of diferent color markers are ignored When desplaying a map/node in the 5.x-1.x-dev (2007-Mar-15): I have the same red marker for al contents (blog, articles, pages...), it was working fine in 5.x-1.x-dev (2007-Mars-14).
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | markers_0.patch | 2.14 KB | owen barton |
| #3 | markers.patch | 1.69 KB | owen barton |
Comments
Comment #1
massimoi commentedYes, it happens also if you customize the template of gmap_view. It ignores the marker type.
Thanks
Massimoi
Comment #2
skives commentedI also have the same problem. I installed the GMAP mods yesterday (Mar-15) and I can change the marker colors, but they always show up red (using IE and FireFox), although when I view source I see - "markername": "blue"
Everything else seem to be OK.
Thanks!
Comment #3
owen barton commentedI also have this problem. I am have traced the marker right through views, through theme_gmap and to the HTML code (well, inline JS code really) and everything on that side of things is fine.
I was able to debug the JS a little - there was a recent change in the marker handler code that is breaking things. I am not quite sure what the problem is with the new code, but I did confirm that reverting 2 changes to a previous gmap version fixes things, so markers display correctly.
A patch is attached as a short term fix for people who need this functionality, but we should really try and figure out what the problem is with the new code.
Comment #4
geograt commentedThanks Grugnog2 but the patch don't work with me. Maybe i don't understand in wich lines i nead to add o eliminate the code. Can you please make your patch with (-) and (+) to make another tentative. Thanks again.
Comment #5
owen barton commentedHere ya go :)
Comment #6
geograt commentedThe patch work fine, we just need to refresh the view the first time to make the color markers reapear. thanks grugnog2.
Comment #7
bdragon commentedSorry about that.
The problem was due to missing sequences. I was forgetting to generate sequences when they weren't provided during prepareMarker's call to Drupal.gmap.getIcon.
Fixed with http://drupal.org/cvs?commit=61237 .
Comment #8
bdragon commentedComment #9
(not verified) commented