Tried countless settings in (/admin/settings/gmap) to get a markers to show up but nothing works. Installed everything by-the-book, any support would be helpful.

Example of code I have inside a node:
[gmap markers=small red::59.3302,18.0591 |zoom=15 |width=510px |height=340px |control=Large |type=Map]

Maps display and work fine, but without a marker.

Best regards,
Eriksson

CommentFileSizeAuthor
#9 gmap_module_invoke_array_loop.patch794 bytesMichaelP

Comments

ix’s picture

same thing here. have you figured out a fix yet?

glennpratt’s picture

I have the same issue. No relevant errors in Firefox Error Console. Any suggestions where to look?

glennpratt’s picture

For me, this was caused by a typo on my files directory.

Make sure your file path is correct and writable, the gmap module will put some marker js files there and call them from the page. View your source and look for something like

<script type="text/javascript" src="/files/js/gmap_markers.js?3"></script>

Then see if the link is valid and the files exist.

baronmunchowsen’s picture

I was experiencing the same issues. I was also including a jquery ui script for some tabs elsewhere on my site (http://docs.jquery.com/UI/Tabs). There must have been a conflict with my jquery ui javascript and marker.js, because when I disabled the jquery ui javascript, the markers re-appeared. If you've lost your markers, you might look and see if any scripts are causing the problem.

Hope this helps someone!

bdragon’s picture

Status: Active » Postponed (maintainer needs more info)

Please try revision 1.4 of icon.js and see if it fixes any issues. http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/gmap/js/ico...

caligan’s picture

While my posted GMaps are showing lines created in the Macro builder appropriately, no markers appear. Two maps to demonstrate, the first with a drawn line, the second with a number of markers set:

Lines: http://www.darkmetalmush.net/drupal/book/setting/northam/latma/map

Markers: http://www.darkmetalmush.net/drupal/og_post/map

I've been through everything I can think of to try to make this work. I turned off all other JS scripts with no success, made sure the modules are all up to date, tried the 1.4 revision of icon.js (which only broke the macro-builder), and double- and triple-checked the macro text, including trying a macro made on a different site.

Note: The markers DO show up in the macro-builder when I set them, although they invariably appear as the default image even when I change the set it's supposed to use. (I checked the marker folder - all are present.) They just don't appear (even when the default set is used) when I put the macro in another node to try to display them, though the map appears properly.

The macro built on a different site did show different images in that builder, both default markers and different marker sets, but only while in that site's macro-builder window. They didn't appear when the macro was moved to my site.

I'm out of ideas. Anybody else run into this? (It happens on both Firefox 3 and IE 6, incidentally, on Win2k and WinXP Pro respectively.)

MichaelP’s picture

Status: Postponed (maintainer needs more info) » Active

Nearly a year old this issue, but I'm experiencing the same as @Caligan at #352852-6: Markers do not display in 6.x-1.0. Seeing markers on the Macro Builder Page, but no markers on MAP as node content. Current version of Icon.js is 1.6.

Would appreciate any ideas.

MichaelP’s picture

Determined that a macro with points, circles etc. as node content on a vanilla install of core 6.19, gmap-6.x-1.x-dev, location-6.x-3.x-dev works no problem.

Disabling the http://drupal.org/project/gmap_addons module gmap_tracks cured the problem on my troublesome installation. If I discover why, I'll post back.

MichaelP’s picture

StatusFileSize
new794 bytes

Game on!

The gmap_module_invoke array init was inside the loop. So more than one hook_gmap would overwrite the previous values stored in the array.

Patch to be reviewed.

MichaelP’s picture

Category: support » bug
Priority: Normal » Minor
Status: Active » Needs review
bdragon’s picture

Status: Needs review » Fixed

This was fixed with #703480: Blank Map Behavior flags.
I can't believe this bug had slipped my attention for as long as it did, but there you have it.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.