Now we can define map dimensions for 'geolocation_googlemaps_dynamic' in formatter view settings, but only in 'px'. Responsive design used width in '%'.
How can I alter or define such thing?
Now we can define map dimensions for 'geolocation_googlemaps_dynamic' in formatter view settings, but only in 'px'. Responsive design used width in '%'.
How can I alter or define such thing?
Comments
Comment #1
Bright Web Design commentedI am also looking for this feature.
It would be so great if you could allow options like "auto" "%"
Comment #2
vlad.dancerBetter category
Comment #3
Mark_L6n commentedI see that the nice Google Map displayed when editing a node uses 100% x 400px so this should be possible.
Additionally, it would be very useful to be able to override the dimensions in an individual node. (Have a default size for the content type that could be overridden by each node.)
On the topics of defaults and overrides, zoom level would be useful too--not every map will want the same zoom level.
Comment #4
sibiru commentedrequest this too
Comment #5
Johnxystus commentedi just change the "px" to "%" in geolocation_googlemaps.module at line 210 and i have a responsive maps
im using Geolocation version 7.x.1.1 ...
from
$width = strtok($settings['map_dimensions'], 'x') . "px";
to
$width = strtok($settings['map_dimensions'], 'x') . "%";
later i change the default 300x300 to 100x300
i hope they can unset this setting so we define our own size using CSS only
Comment #6
chefnelone commentedI'm interested too in this feature.
Comment #7
veronicaseveryn commentedI will create a patch to modify the settings.
Comment #8
veronicaseveryn commentedI will create a patch to modify the settings.
Comment #9
veronicaseveryn commentedI have modified the input for map dimensions. I separated it into 2 fields for height and width, where one can input dimensions in PX or % (even mix % and PX, what I needed in my case). I've tested it and it works. Check it out.
Comment #10
Maks commentedMany thanks, veronicaSeveryn! Path works just fine!
Comment #11
derjochenmeyer commentedGreat patch, thanks!
Fixed some coding standards issues and use of t().
To get this into a stable release we need a way to update these settings for existing installations.
Comment #12
derjochenmeyer commentedHere is one with an update function. Please test... it's in the latest 7.x-1.x-dev
Btw, this also alters the settings for static maps where % settings dont make any sense. Any solutions?
Comment #13
jglynn commentedYou can override the map dimensions in your css stylesheet by simply using !important
ie.
.geolocation-map{
max-width: 100% !important;
height:400px !important;
}
Comment #15
christianadamski commentedClosing all 7.x issues. It's time.