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).

CommentFileSizeAuthor
#5 markers_0.patch2.14 KBowen barton
#3 markers.patch1.69 KBowen barton

Comments

massimoi’s picture

Priority: Normal » Critical

Yes, it happens also if you customize the template of gmap_view. It ignores the marker type.

Thanks
Massimoi

skives’s picture

I 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!

owen barton’s picture

StatusFileSize
new1.69 KB

I 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.

geograt’s picture

Thanks 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.

owen barton’s picture

StatusFileSize
new2.14 KB

Here ya go :)

geograt’s picture

The patch work fine, we just need to refresh the view the first time to make the color markers reapear. thanks grugnog2.

bdragon’s picture

Sorry 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 .

bdragon’s picture

Assigned: Unassigned » bdragon
Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)