I would like to get the user map feature working - currently i get a form for the user to enter their location, but no markers appear on the map at /map/user. Am i missing something to get this to work? I'd really like to have a solution where user locations are shown on a map, ideally with a "find user near X" type search. If this module cannot do it are their others that could?

Comments

ricobotto’s picture

I have same problem..i am using drupal 6..is there a way someone can help? thanks

mizerydearia’s picture

I also am using Drupal 6.9 and have this issue
When viewing map/user I noticed in Firefox Error Console "c[0] is undefined"
In admin/user/permissions I just enabled "show user map" and "user locations" for anonymous.
You can see the map at http://tasteofthaiinc.com/drupal/map/user

bdragon’s picture

Status: Active » Postponed (maintainer needs more info)

Does it work better with revision 1.4 of icon.js? http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/gmap/js/ico...

(this goes for both D5 and D6, icon.js is equivilent for both.)

jfxberns’s picture

OK--I had the same problem but got it to work. (Using Drupal 6.9, GMap Module 6.x-1.0, Location 6.x-3.0, Views 6.x-2.2.)

I did several things listed below (plus clear the browser cache, the Drupal caches) and did not test them independently (that is revert to the initial state and try just the one factor--it was cumulative), so I am not sure if there was one that was actually the key or it really takes all three steps...

1) bdragon: The URL to the rev 1.4 file you linked to http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/gmap/js/ico... is actually tagged as:

/* $Id: icon.js,v 1.3 2008/10/03 18:38:51 bdragon Exp $ */

I downloaded the latest revision (rev 1.5) http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/gmap/js/ico... which is tagged as:

/* $Id: icon.js,v 1.4 2009/02/03 20:40:14 bdragon Exp $ */

which is far more recent and... it still did not work.

2) I went to permissions and added the following permissions:

Gmap Module
set user location - Authenticated Users
show node map, show user map and user locations - All Users

location_user module
view all user locations - All Users
set own user location, view own user location - Authenticated Users

That still did not show any users on the User Map.

3) The only user I had on the dev system was Administrator, so I created another (regular, authenticated) user and added their location and BOOM! it worked--the new user was displayed--but is still did not display the Administrator.

Are Administrators excluded by design or...?

If anybody figures out which precise step(s) is actually needed... it would probably be useful to post it here.

amysragbag’s picture

Version: 5.x-1.x-dev » 6.x-1.0

I have this problem as well. When I look at admin/settings/gmap I see the setting that I have configured and saved (default center, default zoom etc). So far so good.

When I look at map/user it doesn't show my settings, and users who have entered their addresses aren't marked. It doesn't show administrators or regular authenticated users. As I understand it, the addresses entered in user profiles should be marked on the map.

I am using: Drupal 6.9, GMap Module 6.x-1.0, Location 6.x-3.0, Views 6.x-2.2, Addresses 6.x-1.05

I hope the info I'm posting isn't too simple or irrelevant... I haven't really learned any code yet.

*edit* I tried adding a new user after everything had been installed and configured and hit the 'regenerate' button, but the new user's location didn't show up on the map either. I also tried clearing cache.

amysragbag’s picture

re bdragon:

Does it work better with revision 1.4 of icon.js? http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/gmap/js/ico...

(this goes for both D5 and D6, icon.js is equivilent for both.)

No. It doesn't look like it changed anything.

hankpalan.com’s picture

I've tried setting up both admin and authenticated users locations but both do not display on /map/user site is updated on latest module versions.

@amysragbag this is kind of backwards but the settings for the /map/user are actually controlled in the user map macro on the admin/settings/gmap_location page. I think the settings on the gmap page are for general mapping.

amysragbag’s picture

@hankpalan.com thank you. I made a macro and pasted the code into right place so the map looks great now, except for the missing markers.

I wondered if it had to do with firefox because one time things weren't showing up on my site and it turned out that I just needed to update firefox and then everything was fine, But I just updated yesterday or so and still no markers.

ntt’s picture

subscribing

Cromicon’s picture

subscribing

Cromicon’s picture

I used:
Official releases Date Size Links Status
6.x-1.0 2008-Dec-12 170.89 KB Download · Release notes Recommended for 6.x

and this:
1) bdragon: The URL to the rev 1.4 file you linked to http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/gmap/js/ico.... is actually tagged as: /* $Id: icon.js,v 1.3 2008/10/03 18:38:51 bdragon Exp $ */

And it now works in ff3, opera 9 and ie7.

amysragbag’s picture

I switched back to the icon.js that bdragon linked to and users can now see their own markers when they go to edit their own locations, but the map at node/user is still blank.

Authenticated users have the following permissions: 'set user location' 'show user map' and 'user locations.' I'm reluctant to give permissions to anonymous users as jfxberns did, so I don't know if that would work.

hankpalan.com’s picture

If you set the lat and long for a user the marker shows up. Right now the lat and long is 0.00 this issue is being discussed here http://drupal.org/node/373723 and here http://drupal.org/node/317159

Cybergarou’s picture

I'm trying to figure out if I'm seeing the same problem here.

Have any of you tried panning or zooming the map? I have found that the user locations map and node locations map don't show anything when they first load, but all of the markers appear when you zoom or pan the map. It looks like something is messing up the initial rendering of the markers.

There are no problems with displaying markers on the other maps in my site.

(Right now I'm using GMap 6.x-1.x-dev, but I saw the same behavior in 6.x-1.0.)

amysragbag’s picture

@ Cybergarou, In admin/settings/gmap, under gmarker manager settings, in marker defaults, set minimum zoom to 0 and max to 17. It says 'choose 0 to disable by defalut' but that didn't work for me.

Cybergarou’s picture

@ amysragbag, I'm not using the gmarker manager. In fact, the behavior I described occurs with all of the marker manager options, including no manager.

I was hoping to find out if anyone experiencing the issue in this thread could get the markers to show up by panning the map. If not I'll need to post a new issue.

nirvanajyothi’s picture

had got this too.

try checking the permissions .
i had missed to grant submit latitude/longitide permission for location module.

Anonymous’s picture

Status: Postponed (maintainer needs more info) » Active

Months later, this problem still exists, but I found the problem:

User long+lat is required to work. They are supposed to be auto-calculated on submit of user/%/edit. -- But they are NOT. As soon as I manually entered a long & lat, it worked. But the message "If you leave these fields blank, the system will attempt to determine a latitude and longitude for you from the entered address." -- is misleasing.

Either long&lat is not being calculated, or a warning notice needs to be presented, asking user to manually update their long+lat....

Anonymous’s picture

Also, if I delete the values long & lat, and hit Submit, the old values return. They are not emptied nor updated.

Somewhere the geocoder simply isnt working for users.

rogermcallen’s picture

Hi
i have solve partially the problem, or better I found the cause of the problem!

The thing that block the markers to dislapy in the User maps, o in the node, is the .htaccess file inside the folder sites/default/files/ ! (this in my case). Because if you go to see this folder, you will see the js folder, which have inside the file gmap_markers.js, that is probably blocked by the .htaccess file.

To solve the problem, rename the .htaccess file, or comment the two lines inside.

rogermcallen’s picture

Hi
i have solve partially the problem, or better I found the cause of the problem!

The thing that block the markers to dislapy in the User maps, o in the node, is the .htaccess file inside the folder sites/default/files/ ! (this in my case). Because if you go to see this folder, you will see the js folder, which have inside the file gmap_markers.js, that is probably blocked by the .htaccess file.

To solve the problem, rename the .htaccess file, or comment the two lines inside.

keeno’s picture

One thing that had me stuck for some time was I didn't see anywhere in the documentation to set location settings for users at 'admin/user/settings'.

davycw’s picture

I realize I'm pretty late to the party, but this still hasn't been fixed. Any word on it?