I am new to Drupal so maybe I am missing something, but I can not seem to get Markers to show up on GMaps.

Everything seems to work ok otherwise, I can see and create a GMaps Macro, and the markers show up on the Macro creator page, but if I use the GMap filter to insert a GMap into a node page it does not work correctly. The map shows up on the page, and it is centered and zoomed to the correct location as determined by the GMaps Macro Creator, but the Markers that were specified in the Macro do not show on the map.

Here is the Macro I created;

[gmap markers=big blue::45.13846137581871,-75.69923400878906 + 45.1179330565246,-75.7269036769867 |zoom=15 |center=45.11893239355361,-75.72695732116699 |width=490px |height=490px |id=ITCMap |control=Large |type=Map]

Any help would be greatly appreciated.

Comments

challer’s picture

I had the same issue, and checking the option "No manager (use addOverlay directly)" in the Marker Manager section on the gmap admin page solved it. Seems like this option should be checked by default?
Hope that helps, Chris

bdragon’s picture

I can't check it by default... I changed the format of the possible values, so "no radio checked" means an obsolete value is still in there.
On a fresh install, it should default automatically, but upgrading from an earlier 5.x, you have to reset it by hand by actually clicking a radio button...

dpickerel’s picture

In Firebug I'm seeing:
Drupal.gmap.factory has no properties
in
Drupal.gmap.factory.marker = function(loc,opts) {

On line 8 of gmap_marker.js (line 8)

-Don-

bdragon’s picture

@don1one:

Sounds like your gmap.js is out of sync with your gmap_marker.js. Caching issue?

danwassink’s picture

I am having the same problem. I cannot get the markers to show at all. I've tried the suggestions mentioned above, and it didn't work. Anymore ideas?

paloczp’s picture

Hi,

I used the Lightbox2 module, and not showing the Markers. When I turned off the Lightbox2 module, the markers showing. :(

Check any other modules, which use js function.

I hope, help for you!

Paul

zigma’s picture

same problem here. i don't see any script error in firebug.

zigma’s picture

it shows up on Macro builder though.

bdragon’s picture

Status: Active » Closed (fixed)

One final thing to try if this is all still happening is to upgrade to Drupal 5.2. There was a JSON fix that fixes issues with empty arrays being invalid JSON.

Closing issue due to lack of feedback.

chisler’s picture

Component: Miscellaneous » Code
Status: Closed (fixed) » Active

I am running 5.2 and can verify that with the lightbox2 module enabled markers do not work on my GMaps. Disabling lightbox2 fixes it - markers will display correctly.

Any chance of a patch/fix for this?

Chisler

bdragon’s picture

Status: Active » Closed (won't fix)

Not in GMap. Lightbox2 is messing with builtin object prototypes and breaking jQuery.
Lightbox2 issue: http://drupal.org/node/175094

RWill’s picture

Issue summary: View changes

I had the same issue with gmap-7.x-2.x-dev. My marker wasn't showing and I got missing gmap-markers.js error in the console. I resolved it by applying the following patches:
https://www.drupal.org/files/issues/gmap-gmap_markers-location-2185395-1...
https://www.drupal.org/files/issues/gmap-esta-turhientiedotojen-luonti.p...