Active
Project:
GMap Module
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
5 Feb 2011 at 09:22 UTC
Updated:
26 Jun 2015 at 13:32 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
asutton commentedI am trying to use the following code in the GMap view macro box:
[gmap zoom=3
|center=
|width=600px
|height=400px |control=Small |type=Map]
PHP filter is enabled in modules.
this macro breaks my map and does not show default settings. any help is appreciated!
Comment #2
asutton commentedproblem solved. the issue was with my filters being out of order.
Comment #4
andrea.cavattoni commentedi cant solve the same problem, can u help me?
Comment #5
mmll commentedHave been around wondering for quite a bit already how to set lat&long got from user ip for default map.
I'm newby in code but can handle if pointed in concrete direction.
I have Smart IP and PHP filter installed, using D7 though.
This issue is closest I got. #1 didnt work for me.
I played around with it, also tried to paste it into macro to generate node/map to see what happens in. I got error (no map zoom etc).
Comment #6
javi.pl commentedI had the same problem.
Solution -> add patch (this patch allow to implement php into macro, tested only in views )
Macro example:
[gmap align=Center |zoom=10 |center=
|width=100% |height=600px |control=Small |type=Map]
I had also problem with "Smart_ip" module. If that's a problem check if you have proper $_SESSION['smart_ip'] variable.
dpm($_SESSION['smart_ip']); (you need to have devel module instaled)
Comment #7
javi.pl commented