Closed (won't fix)
Project:
GMap Module
Version:
6.x-1.0-rc2
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 Jan 2009 at 04:45 UTC
Updated:
14 Apr 2013 at 23:23 UTC
I' admin'ing an interactive website where users can set their location (a single location) and also submit nodes.
Different users are in different places in the country. I've had several requests to default the map to the location the user has submitted as their own location - so they see more local stuff.
Is there a way to theme or override the default location of the map to default to the user's location? I'm not too familiar with this module, having taken over the administration of the above website while a friend is sick, but pretty comfortable with themeing other parts of Drupal. A pointer to the function to override/change would be all that's needed.
Many thanks for your attention.
Comments
Comment #1
farald commentedI find this *VERY* interesting as Im starting on a site meant to be used worldwide.
It would be annoying to zoom the map all the way in over and over and over again:)
Comment #2
jarodms commentedFor starters...GMap...great module and kudos to the developers!
I could really use this functionality too!!! I couldn't find any additional posts on this and am wondering if anyone is looking into this. If not I'll start looking at the code, but no guarantees from me. ;) Thanks!
Comment #3
farald commentedComment #4
TechnoBuddhist commentedHi,
Is this as simple as... gmap_location.module - function gmap_location_node_page()
The change is obviously adding the else clause when not looking at a single node. This works for me, but I only allow a single user location, hence the $user_loc[0].
If user location is empty then the default location is left as set in gmap admin config.
Interesting to hear a response from others, can't believe it's that simple and has been an issue for over a year now.
Be nice I spose to have a checkbox in admin that says "center on user?", but that above works for me in my setup.
Comment #5
johnvClosing this very old issue. Please reopen if it is still valid.