GMap marker file settings & Private Download - My Solution
rondev - March 15, 2009 - 01:57
| Project: | GMap Module |
| Version: | 6.x-1.1-rc1 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
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.

#1
Title renamed
#2
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.
#3
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?
#4
Yes, you need to copy gmap_markers.js to a publicly accessible location and update the gmap settings to point to it.
#5
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.
#6
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
#7
Thanks for pointing that out.... I had a file name mismatch in the path... It was such a simple thing.
#8
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?
#9
the path i'm using is files/js/gmap_markers.js and it's working... and file permissions set to 777.
#10
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.
#11
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
#12
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.
#13
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.
#14
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.
#15
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
#16
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.