After upgrading to Drupal 6, I got the following message:
GMap marker file settings are not configured properly for Private download method, markers will not work!

I think GMap is well installed. I tried different location for gmap_marker.js (now it is there: sites/default/misc/js/gmap_marker.js) and no improvement. The begining of the file is:

// GMap marker image data.
Drupal.gmap.iconpath = "/sites/default/modules/gmap/markers";
Drupal.gmap.icondata = { "/small/": { "f": [ "shadow.png", "red.png", "bred.png", "orange.png", "pyellow.png", "yellow.png", "pgreen.png", "green.png", "dgreen.png", 

Could that be again due to some multilingual modules?

I'm lost.

Comments

rondev’s picture

Title: No Markers & Private Download - again » GMap marker file settings & Private Download

Title renamed

rondev’s picture

Status: Active » Closed (fixed)

I just reinstalled the Gmap module with the Devel module and it works now.

Previously, before the reinstallation, there were still missing the line like the following in the source code of the page:
<script type="text/javascript" src="/files/gmap-js/gmap_markers.js?m"></script>

Now that line appears on every page where there is a map to display. Perhaps it is because the upgrade was bad or because I missed something in the long list of parameters, I don't know.

nravens’s picture

Title: GMap marker file settings & Private Download » GMap marker file settings & Private Downloado
Status: Closed (fixed) » Active

Reopened this...

I also get this message: GMap marker file settings are not configured properly for Private download method, markers will not work!

I only got this message after I changed the file download settings from public to private. I only changed this setting because imagecache doesn't work with it set to public.

I've tried Gmap 6.x-1.1-rc1 as well as 6.x-1.x-dev. I'm using Drupal 6.6

Is there a work around for this?

bdragon’s picture

Yes, you need to copy gmap_markers.js to a publicly accessible location and update the gmap settings to point to it.

nravens’s picture

I've tried that with no luck...

The only reason I have my file system set to private is for imagecache to work. So if I can get imagecache to work with a public file system (which is how it's meant to work, isn't?), then my markers will work too.

jmseigneur’s picture

Hello,

There is a typo in the instruction for the filename. The instruction mentions gmap_markers.js but the right filename is gmap_marker.js
When I set the path to gmap_marker.js with s after marker it worked

BR,

Jm

nravens’s picture

Thanks for pointing that out.... I had a file name mismatch in the path... It was such a simple thing.

ron collins’s picture

I am also having this problem. I put the markers file at sites/all/modules/gmap/markers/gmap_marker.js which i can browse to. no markers show up on my maps. neither the default maps nor the views i created show any markers. i've tried user, node and location types. i can see the geocodes in the locations table for my users and nodes. i'm logged in with uid = 1. any ideas where i should look next?

nravens’s picture

the path i'm using is files/js/gmap_markers.js and it's working... and file permissions set to 777.

agileware’s picture

Also, you don't actually have to move the js file from the module folder.
If you just update the gmap settings to point to wherever-you-have-the-module/gmap/js/gmap_marker.js it should work. Worked for me.

fourstone’s picture

Title: GMap marker file settings & Private Downloado » GMap marker file settings & Private Download

Hello,

I got over the gmap_markers.js issue and nothing complains anymore, however I am getting maps without markers anyway, even though centered correctly when looking at e.g. nodes with location information. Also the link to the extern gmap is working correctly, only the internal map is not showing a marker. Any idea?

using drupal 6.12 with the GMap Module 6.x-1.1-rc1 with option of private filesystem access:

files: /www/htdocs/w00af362/fourstone.org.files/
drupal-root: /www/htdocs/w00af362/fourstone.org/
markers file: /www/htdocs/w00af362/fourstone.org/sites/default/files/js/gmap_markers.js

If you need anymore information, please notify me. Should I give the dev version a try? However I had the impression this issue was considered fixed?

kind regards, Martin

ashiwebi’s picture

Thanks for all the suggestion under this issues but still I am not able to configure it properly.

It shows the same error "GMap marker file settings are not configured properly for Private download method, markers will not work!"

I copy the file to sites/default/misc location.It still shows the same error.

I need the solution as soon as possible.

Any help is appreciated.

danoguru’s picture

I was experiencing the same problem when private download method enabled and it works now!

I am using Drupal 6.12 and GMap Module 6.x-1.1-rc1

in your GMAP settings: http://www.example.com/admin/settings/gmap go to the field "Path to gmap_markers.js" and set the path as you like but I followed the example and copied the gmap_marker.js to "sites/default/misc/gmap_marker.js" directory. Under this field you have a help message explaining what to do if you have private downloads enabled, only there is a typo!!! the file is named "gmap_marker.js" NOT "gmap_markers.js".

This typo stole 30 minutes of my time :( so I created an issue for gmap module.

Anonymous’s picture

To danoguru:
NO! gmap_markers.js and gmap_marker.js - is absolutely different files. And there is no typo. File gmap_markers.js appears in js folder in FILE directory (admin/settings/file-system). Specify "js/gmap_markers.js" in Gmap settings as path to gmap_markers.js. As I understood, Gmap serches this in file directory if private method is specified. I works fine even if files directory specified outside the drupal folder.

Gabriele 72’s picture

Title: GMap marker file settings & Private Download » GMap marker file settings & Private Download - My Solution

Create folder external to drupal(not in site/all site/misc site/* etc etc :EXTERNAL FOLDER FROM ALL FOLDERS OF DRUPAL) i have created in root example folder ----> /gmappola

I have put gmappola/gmap_markers.js in path setting (you find in http://yourdomain/admin/settings/gmap)and thats all :)

PS danoguru,gmap_markers.js and gmap_marker.js - is absolutely different files,kirbaranov have reason.

Ciao

Gabriele

merilainen’s picture

I got this message also after changing from public to private download method. I tried everything like moving the file to another directory etc. but I noticed that it works also from files/js folder. The problem is that when I get this error message, the file has just disappeared from files/js! Then without changing any settings or doing anything special, the file suddenly appears in that folder. Maybe due to cron run or something.

I don't know what is causing this, but last time when I got this error, I checked the files/js folder and it was empty, like I had noticed before. Then I just pressed the "Regenerate" button in gmap settings and the file comes back to the files/js folder. But I still don't know why it disappears from there.

so4’s picture

worked for me.

RoiDanton’s picture

I can't get the markers to work.
My drupal installation path is /var/www/html/portal
I put the gmap_markers.js in /var/www/html/js/gmap_markers.js
I pressed the regenerate button and accessed the map but no markers.
In the log I got a page not found error. It tries to access http://DOMAINNAME/portal//var/www/html/js/gmap_markers.js?M
I entered in the gmap config ../js/gmap_markers.js

Can someone please help me whats wrong?

Thanks!

izmeez’s picture

subscribing to bookmark this useful info. Thanks.

rooby’s picture

Title: GMap marker file settings & Private Download - My Solution » GMap marker file settings (gmap_markers.js) + private download method

OK here goes, I shall try to clear this up:

  • There is no typo, there are two different files.
  1. gmap_marker.js - This file is included with the gmap module in it's js directory. You can forget about this file as it is unrelated to this issue.
  2. gmap_markers.js - This file does not exist in the gmap module when you install it. It is created dynamically by the gmap module and is saved to a js directory in your files directory.
  • If you are using drupal's public file system then you need do nothing because the js directory in your files directory is open.
  • If you are using drupal's private file system then there is an issue because your files directory is not open. To resolve this you have to:
    1. Manually copy the gmap_markers.js file from /js to somewhere in your drupal installation that accessible by the web server. This doesn't have to be anywhere in particular. It can be within the gmap module if you want but I would not recommend that as it will be lost when upgrading the module. Instead somewhere like sites/default/misc/gmap_markers.js (like the gmap settings screen suggests) would be better.
    2. On the gmap settings screen (admin/settings/gmap) in the 'Path to gmap_markers.js' field enter the path from the drupal root to the file (including the file name)

    NOTE: DO NOT put the path to the gmap_marker.js file in the 'Path to gmap_markers.js' field. This is what causes no markers to display on maps, which is what some people are reporting.

    szalonooki’s picture

    few tries and it's working, but, in my case, the path should be start without '/'
    thanks

    jghyde’s picture

    #20 Solves this problem. Excellent! Thanks.

    Joe

    rooby’s picture

    Status: Active » Fixed

    Marking fixed.

    Status: Fixed » Closed (fixed)

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

    dineshweb’s picture

    thanxs
    all of them
    yes, you need to copy the file gmap_marker.js the accessible location such as (sites/default/mics/gmap_markers.js) and rename it with gmap_markers.js and after that go to the gmap settings and click the regnerate marker button.after that you have successful access the marker on the map.i also do it..its a right way really...

    guillaumeg2’s picture

    Hi !

    I don't find the field 'Path to gmap_markers.js' in gmap settings screen (admin/settings/gmap)

    Help !
    Guillaume

    Jettzilla’s picture

    Okay dudes, I've done all of this stuff and more (even changing back to public instead of private file download--that didn't even work) to get my markers to show up. I've changed code, changed the location of the js file a billion times and NOTHING is working for me.

    Can anyone get these stupid markers to show up??? I just want a way for people to see where i'm traveling to and from and i can't do that without markers of some kind :(

    My site is http://jettzilla.com

    I also don't have the map public or anything...i want it in a block but i don't yet have it there...ugh. i wish i understood this better!!

    richard.e.morton’s picture

    following on from comment #20
    get the gmap_markers.js file from js subdirectory of your files directory and move it to an accessible location - the http root is almost always going to work,

    change the path (if you have used the root, then it would simply be gmap_markers.js), then save the settings - button at bottom of page, then use the regenerate button after this.

    stevensunsunsun’s picture

    Thanks! Didn't spot that typo until you mentioned it!

    grjgrj’s picture

    I'm looking to ftp to my site found the file gmap_markers.js. (I have it at sites / default / files / js / gmap_markers.js). Have been eaten in the gmap module in the Path to gmap_markers.js:. Then save. Then he pressed a button Regenerate. Everything was fine.

    brad.curnow’s picture

    #20 Thanks for clearing this up, solved my issue :)

    kuydigital’s picture

    I've checked the directory locations of my gmap.markers.js (/sites/default/files/js) and gmap_marker.js (/sites/all/modules/gmap/js) and my map is still not showing markers. I'm using GMap 6.x-2.0-beta3 & Location 6.x-3.2. Thanks!