I am using GMap to serve two maps on the same page, but also using Field Permission access control (through Views) to determine which map is seen by the user. This way, the user gets either a map with precise coordinates or a map with obfuscated (truncated) coordinates. I think this is an issue with GMap, but if I misunderstand what is happening, it should probably be moved to Field Permission.
The Views access control is set to show one map on permission "View field_latitude" and one map on permission "View field_latitude_trunc." The permissions do not overlap; Anonymous users have "View field_latitude_trunc" set, Admin and Researcher users have "View field_latitude" set, and no permission is set for Authenticated users.
When looking at the page as admin, I see the precise coordinate map (as designed), but when looking at the page as anonymous, I get a bunch of this error:
Notice: Undefined index: field_latitude in template_preprocess_gmap_views_view_gmapextended() (line 56 of /var/www/sitename/sites/all/modules/gmap/gmap.views.inc).
ADDED: I am using the Extended GMap format in Views with two fields acting as the latitude and longitude source for each map.
Thoughts? Any better way of doing this?
Comments
Comment #1
johnvDid you solve this in the mean time?
You say you have a lat/lon field. How do you truncate the coordinates in case of the second view? Perhaps there is the problem.
Since we need to change to Google API v3, all changes will be in 7.x-2.x version.
Comment #1.0
johnvAdded additional info.
Comment #2
jkingsnorth commentedNo additional information provided, closing. Please reopen against the latest dev with full instructions about how to recreate the problem if this is still an issue. Thanks.