I'm sure this is a duplicate, but I can't figure of which issue.

My map has no marker on it, nor an invitation for driving directions (got from another issue).

[gmap markers=numbers::44.936619,-93.351094:<form action="http://maps.google.com/maps" method="get" target="_blank"><b>Get Directions to Holy Trinity</b><br /><span class="descriptor">Start address:</span><br /><input type="text" SIZE=40 MAXLENGTH=40 name="saddr" id="saddr" value="Street, City, State, Zip" class=descriptor onFocus="this.value=\'\';" /><br><INPUT value="Get Directions" TYPE="SUBMIT" class=descriptor><input type="hidden" name="daddr" value="44.936619, -93.351094"/></form> |align=Center |zoom=13 |center=35.2281989,-80.808466 |width=400px |height=400px |id=Holy+Trinity+Lutheran+Church |control=Large |type=Map]

.

BTW, why is there no documentation page(s) for such a useful module? [Oh, I know: I haven't written it yet.]

CommentFileSizeAuthor
#15 icon.js_.patch776 bytespianory
#10 icon.js_.patch155 bytespianory

Comments

nancydru’s picture

<p><div style="width: 500px; height: 400px;" id="gmap-auto1map-gmap0" class="gmap-control gmap-gmap gmap-center gmap gmap-map gmap-auto1map-gmap">Javascript is required to view this map.</div><script type="text/javascript"> 
/* <![CDATA[ */
jQuery.extend(true, Drupal, { settings: { "gmap": { "auto1map": { "width": "500px", "height": "400px", "zoom": 13, "maxzoom": "14", "controltype": "Large", "align": "Center", "maptype": "Map", "mtc": "standard", "baselayers": { "Map": 1, "Satellite": 1, "Hybrid": 1 }, "styles": { "line_default": [ "0000ff", "5", "45", "", "" ], "poly_default": [ "000000", "3", "25", "ff0000", "45" ] }, "line_colors": [ "#00cc00", "#ff0000", "#0000ff" ], "behavior": { "locpick": false, "nodrag": 0, "nokeyboard": 1, "nomousezoom": 0, "nocontzoom": 0, "autozoom": 0, "dynmarkers": 0, "overview": 0, "collapsehack": 0, "scale": 0 }, "markermode": "0", "longitude": "-80.808466", "latitude": "35.2281989", "id": "auto1map" } } } });
/* ]]> */
</script>
</p>
nancydru’s picture

Any ideas? This should be such a simple thing. http://htlccharlotte.org/contact-us

jcmarco’s picture

Check if you have configured a marker manager and you haven't installed the required javascripts for it. Select No Manager and test it.

nancydru’s picture

I have "No manager" selected already.

nancydru’s picture

My customer is screaming now. Can anyone help with this, please?

jcmarco’s picture

Why do you have this in your gmap.css?
/* IE VML Security issue fix.
* For more details, see:
* http://googlemapsapi.blogspot.com/2006/09/vml-security-issue.html
*/
v\:* {
behavior:url(#default#VML);
}

in the Firefox I get this error:
Warning: Expected ',' or '{' but found '*'. Ruleset ignored due to bad selector.
Source File: http://htlccharlotte.org/sites/all/modules/gmap/gmap.css?v
Line: 5

nancydru’s picture

This is what I have in the node:

<h2 class="script prettybig red center">Holy Trinity Lutheran Church</h2>

[gmap align=Center |zoom=13 |center=35.2281989,-80.808466 |width=500px |height=400px |control=Large |marker=Red |label:HTLC |type=Map]

<p class="center">
Address: 1900 The Plaza
Charlotte, NC 28205-3003</p>

<p class="center">
Phone: (704) 377-5439
...

Anything else is coming from the module itself. I didn't change the module from the state it was in when I downloaded it.

nancydru’s picture

I just downloaded the latest -dev and applied update 5003 (wrong numbering, BTW). Still no marker, but that VML stuff seems to be gone.

bjorpe’s picture

Similar issue here...

Have tried to show markers using the Gmap array. Even the example code provided with the module ($map_array2 in api.html) will not show markers (with default settings).

Tested with 5.x-1.0 and 5.x-dev

pianory’s picture

Issue tags: +gmap, +ie7, +icon, +ie6, +ie8, +markers, +javascript error
StatusFileSize
new155 bytes

I've created a fix that works for IE6, 7 and IE8. See attached patch file to patch icon.js. Turns out (on my install, Drupal 6.16, GMap 6.x-1.0), that the icon.js file had c[0][i] undefined, and IE just didn't like how that was being checked. Hope this helps :) I have not found any side affects, though there could be some - others should test this on a development machine before putting to a production machine.

nancydru’s picture

Status: Active » Needs review

Thanks. Could you please recreate the patch with diff -up?

nancydru’s picture

If I applied it right, no difference in IE7 or FF3

cattalk’s picture

I have the same problem, sometimes the markers show, sometimes they're gone. Fiddeling around with the View settings and/or the Gmap Settings in the admin fixes the problem for some time. Then the markers are gone, the places are still clickable though and the bubbles appear.

nancydru’s picture

Se my link above. No Views at all, just a simple page - and a very angry customer.

pianory’s picture

StatusFileSize
new776 bytes

NancyDru, resubmitting patch with diff -up command. Hope that helps ~

nancydru’s picture

Thanks. It still doesn't work. http://htlccharlotte.org/contact-us

pianory’s picture

Hi Nancy,

Fun – I have done a lot of web work for various clients in Charlotte, NC.
Since the map at the prementioned link didn’t work in the latest Firefox on my Mac OR in IE6, I’d recommend just using Google’s output if it’s just one map. I did a lookup at maps.google.com, then a link to customize the map. This can be inserted into the page, not requiring the GMap module (but requiring a less restrictive filter such as 'all html' or 'php code).

http://maps.google.com/maps/empw?url=http:%2F%2Fmaps.google.com%2Fmaps%3Ff%3Dq%26source%3Ds_q%26hl%3Den%26geocode%3D%26q%3D1900%2BThe%2BPlaza,%2BCharlotte,%2BNC%26sll%3D37.0625,-95.677068%26sspn%3D23.403932,67.763672%26ie%3DUTF8%26hq%3D%26hnear%3D1900%2BThe%2BPlaza,%2BCharlotte,%2BMecklenburg,%2BNorth%2BCarolina%2B28205%26ll%3D35.228199,-80.808466%26spn%3D0.011743,0.033088%26z%3D14%26iwloc%3DA%26output%3Dembed&hl=en&gl=us

This will result in code like this:

<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=1900+The+Plaza,+Charlotte,+NC&amp;sll=37.0625,-95.677068&amp;sspn=23.403932,67.763672&amp;ie=UTF8&amp;hq=&amp;hnear=1900+The+Plaza,+Charlotte,+Mecklenburg,+North+Carolina+28205&amp;ll=35.228199,-80.808466&amp;spn=0.024539,0.036478&amp;z=14&amp;iwloc=A&amp;output=embed"></iframe><br /><small><a href="http://maps.google.com/maps?f=q&amp;source=embed&amp;hl=en&amp;geocode=&amp;q=1900+The+Plaza,+Charlotte,+NC&amp;sll=37.0625,-95.677068&amp;sspn=23.403932,67.763672&amp;ie=UTF8&amp;hq=&amp;hnear=1900+The+Plaza,+Charlotte,+Mecklenburg,+North+Carolina+28205&amp;ll=35.228199,-80.808466&amp;spn=0.024539,0.036478&amp;z=14&amp;iwloc=A" style="color:#0000FF;text-align:left">View Larger Map</a></small>

Hope that helps!

Ryan

nancydru’s picture

Using the iframe gets the job done. I would rather have done this right though.

cattalk’s picture

I found that flushing the drupal cache makes the markers appear again, but this has to be done at least once a day.

nancydru’s picture

That's not a problem - use the Cleaner module.

However, that did not fix my problem. I cleared the cache many, many times. I have now just gone to using an iframe to keep the user from screaming at me.

rc2020’s picture

Do we have any sort of a permanant solution on this? Location's getting a rewrite soon but this marker business needs to be settled - current dev releases has no marker system I can revert back to an older system I think but that's far from ideal.

cattalk’s picture

Thanks for pointing the Cleaner Module.

Unfortunately this did not solve the prob either. One day the markers show after the cleaner module has run, the next day I have to clear the page requisites cache manually. Sometimes the marcers dissapear several times a day, sometimes they stay on for a day or so.

thx
cat

projekt14’s picture

Is there any way to get this to work?
With this bug, the whole module isn't usable... :(

rooby’s picture

If you are still using 3.0, try 3.1.

The only problem I had with the macro in the original post is that the contre of the map is so far away from the marker coordinates that it is off the map.
If you zoom right out you can see the marking, including the form on the pop-up. No patches should be required.

projekt14’s picture

3.1?
I'm using version 6.x-1.1, released yesterday...

rooby’s picture

Sorry, I got mixed up with the location module. I meant 1.1

projekt14’s picture

So it seems that there is no one who as any idea, why this happens, right?

rooby’s picture

Can someone please give a more thorough bug report?

I understand the problem is that no markers are displaying.
Is this for all maps, gmap macros, gmap views?
Does it always happen or just sometime? if sometimes, when?
What versions of drupal/gmap (and location if applicable) are you using?

All I can see from the original post is that the marker isn't displaying for the macro in that post.
In #24 I gave the reason for that particular macro not working.

nancydru’s picture

You have my information from the OP. If the center was way off, why did the map display in the correct location, just with no marker (ever)? The patch given was of no help either.

I cannot update the new version because I have abandoned this module because of this issue.

rooby’s picture

When I tried your original macro the map did not display where the marker was. I don't know how it could have for anyone else.
If you look at the coordinates:
The marker is at 44.936619,-93.351094
The centre of the map is at 35.2281989,-80.808466

Very different locations. One is in Minneapolis MN and one is in Charlotte NC.

nancydru’s picture

Well, then it is a bug in the macro code.

MKaiser’s picture

Today I installed the update from gmap-6.x-1.1-rc1 to gmap-6.x-1.1 and after this i had no more markers or polygons. When i disabled the gmap overlay module from the gmap addons the markers and polygons are displayed. On my site this may be a problem between the modules.

projekt14’s picture

I used gmap 1.1 and a nearly clean Drupal 6.16. I tried to insert a map via this code in a module:

$map_array = array(
    'id' => 'example',
    'maptype' => 'Terrain',
    'width' => '400px',
    'height' => '400px',
    'latitude' => 52.042207,
    'longitude' => 7.454782,
    'zoom' => 12,
    'align' => 'left',
    'controltype' => 'Small',
    'mtc' => 'standard',

    'behavior' => array(
      'locpick' => FALSE,
      'nodrag' => FALSE,
      'nokeyboard' => TRUE,
      'overview' => FALSE,
      'scale' => TRUE,
    ),

    'markers' => array(
      array(
        'text' => 'First Marker',
        'longitude' => 52.042207,
        'latitude' => 7.454782,
      ),
    ),

  );

 
  $output .= theme('gmap', array('#settings' => $map_array));

No markers are displayed, never.

kb_0’s picture

See http://drupal.org/node/478294#comment-2081456. It resolved my disappearing markers problem. -kb

projekt14’s picture

No, unfortunately that didn't solve the problem for me.
Via firebug I can see, that the marker image is loaded correctly... but it isn't displayed.
The markers url is http://maps.gstatic.com/intl/de_ALL/mapfiles/marker.png, so this comes from an external source... (?!)

projekt14’s picture

I dont' know how the positions of the markers are calcuted, but in my case they are totally(!) wrong. This is how the marker is positioned:

<img style="width: 20px; height: 34px; -moz-user-select: none; border: 0px none; padding: 0px; margin: 0px; position: absolute; left: 130320px; top: 156518px; z-index: -23855296;" src="http://maps.gstatic.com/intl/de_ALL/mapfiles/marker.png">

This is of course far off the visible map area:
left: 130320px;
top: 156518px;
z-index: -23855296;

Any suggestions why this happens?

--------------------
EDIT:
Ouh, boy... I mixed long and lat in marker position. :(

truyenle’s picture

Version: 6.x-1.0 » 6.x-1.1

+ subscribing. I have the same issue of displaying the marker. Not in User Location or Node location maps.

I use GMAP module 6.x-1.1 and Location 6.x-3.1.

Any help would be very much appreciated.

Thanks
Truyenle

truyenle’s picture

I found a post here http://groups.drupal.org/node/19614 which describe detail about how to use view + GMAP + Location module to create a map with marker nicely.

Follow these steps help to solve my case.

In case anyone interested in.

rooby’s picture

Status: Needs review » Active

So does anyone still have problems or are they all resolved now?

EvanDonovan’s picture

Status: Active » Closed (duplicate)