Active
Project:
GMap Module
Version:
6.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Jul 2010 at 16:54 UTC
Updated:
30 Aug 2011 at 04:54 UTC
Jump to comment: Most recent
Hello, ive read tons of the posts about this issue and i still cant quite get it..
im embedding my gmap view block directly into a .tpl file
$view_args = array($node->nid);
$display_id = 'block';
$view = views_get_view('potspot_map');
if (!empty($view)) {
print $view->execute_display($display_id , $view_args);
}
also- in the view, i have an argument set up (ive tried both with and without) for the node id
its showing the correct location marker, just not centering in on it.. its centering on the infamous Wendover
the code snippets in the other posts about this issue dont look the same as the actual code of the gmap_location.module
thanks for any help!
Comments
Comment #1
String Monkey Media commentedSubscribing
Comment #2
jdeg commentedI have the same problem here. Some can help?
Thanks!
Comment #3
jdeg commentedI already solved the problem searching a little bit, here are the answers:
http://drupal.org/node/517560#comment-3921966
http://drupal.org/node/718928#comment-3162664
Basically you have to create the "Global: Null" argument and selected in style of the gmap settings of the view.
Comment #4
r.aubin commented---
7.x
---
For anyone looking to center the map on the row results and not on an argument/contextual filter, try this. Under gmap Format settings in your Views edit screen, alter the gmap macro to include:
behavior=+autozoomSo for example, the macro may look like this if no other customizations are made:
[gmap behavior=+autozoom]