Needs work
Project:
GMap Module
Version:
6.x-1.1-rc1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
31 Jul 2009 at 22:44 UTC
Updated:
9 Mar 2011 at 23:59 UTC
Jump to comment: Most recent file
Comments
Comment #1
tassoman commentedCan you add as feature that if isn't passed UID map get centered on current ip geolocation lat-long reference?
For example should work for anonymous users.
That's a reference to new ip geolocation feature of Google Maps APIs 3.0
http://googleajaxsearchapi.blogspot.com/2008/08/where-is-my-current-user...
Comment #2
infojunkieI discovered a bug with the original patch above. Here's the updated version.
Comment #3
Babalu commentedis there a option then that i can deactivate that when i want ?
Comment #4
infojunkieWhen you call
/map/useryou get the unchanged behaviour. When you call/map/user/uidyou get the modified behaviour with auto-centering and auto-clicking. It didn't seem to me that this needs a deactivation option, but feel free to update the patch.Comment #5
Babalu commentedthe patch is against the 6.x-1.1-rc1 release ?
i have some hunks
Comment #6
tassoman commentedI really don't like to hack & patch, is there a way to override things? I maybe could be able to add ip geolocation
Comment #7
infojunkieAttached is a patch that combines centering around a user if the uid is passed to /map/user/, or to center around the client's location if the behavior flag "clientlocation" is specified for the map. This second feature applies to any map, not just user maps.
Comment #8
tassoman commentedHi, I've downloaded 1.1rc1 by drush, then patched correctly, but now I've lost my users markers, and more, map isn't centered neither on anonymous or logged in user with coords.
I've checked the gmaps admin interface's «clientlocation» checkbox, but still not working.
When I saved gmaps settings, and I try to regenerate marker cache I get following error "Cannot copy selected file (/home/tassoman/www/sites/domain.tld/tmp/fileeWTxTC).
I dunno how to debug things. Any hint?
Comment #9
hutch commented@tassoman:
Check permissions on folder tmp and check permissions on the target, possibly files/js
Comment #10
infojunkieThe latest patch I submitted is defective. I'll submit a new one soon. Sorry for the inconvenience.
Comment #11
tassoman commented@hutch tmp file is correctly written, but seems unreadable by module.
All my directories are chmodded 775 and files 664, owner is www-data.
I've also tested the path user/map/[uid] but isn't mapped.
Being into Drupal's habits would be good having user's map as url user/[uid]/map and a link to user/[uid]/map/edit that points to user's account edit form with an anchor to location fieldset?
Comment #12
tassoman commented@infojunkie is there any chance to test updates? :q
Comment #13
infojunkieSorry I forgot about this issue :-) Here's the correct patch.
Comment #14
tassoman commentedI've patched against 1.1-rc1 and now clear caching works ... but my user markers still not showing.
How to debug that situation? You know I've a template.php override function I use to fill baloons.
Comment #15
infojunkieDo your user markers disappear because of this patch, or even using an unpatched module? I'm using this patch with user markers and they show up fine. I might have cleared the caches and deleted the file js/gmap_markers.js.
Comment #16
tassoman commentedIn my installation, after apply latest patch to RC1 drush downloaded module, after clicking regenerate, markers cache problem is triggered then markers disappears from usermap. I've also deleted all cache by "drush cc"
This evening I'll try further on a plain scratch localhost installation
Comment #17
tassoman commentedOK I've tested a fresh installation, it works good but ... It centers always current user address.
In production installation still unworking :|
Comment #18
tassoman commented@infojunkie how can I try to debug that unwanted behavior? Centering works in a scratch installation, but doesn't in my production environment :(
Comment #19
infojunkieIn gmap/js/gmap.js, the code
invokes Google's ClientLocation object to obtain the client's location. You might want to put an
alertorconsole.loginside theifstatement to make sure that the execution reaches this place. If it doesn't, then either theclientlocationbehavior is not set, or the Google object is not found. The Google object is instantiated by a Javascript inclusion ofhttp://www.google.com/jsapi?key=followed by your GMap API key.Comment #20
greenbeans commentedsubscribing
Comment #21
oliverpolden commentedsubscribing
Comment #22
tassoman commentedWas this patch included into 1.1 version?
My issue refers to RC1.
Comment #23
emarchak commentedSubscribing.