Can’t set the height on Google Map
-
Hi
How can you set the height of a Google Map?Top map, expands to the available page column width and the height is more than doubled.
Side Map, again expands the available column width and the height is less that the height specified.
Bottom Map, expands complete width of the page and the height again is more than doubled.
Code for Bottom Map:
I have used the shorthcode and set the height to 380px, but that value is ignored and instead the height is more than doubled. I also want the width to expand to the page width and that’s ok.Code in PHP template:
<div class="row"> <div class="col-lg-12 col-md-12"> <?php $my_shortcode = '[su_gmap width="600" height="380" address="Orange Tree Private Care, 3 Saville Dr, Sileby, Loughborough LE12 7US" zoom="10" responsive="yes"]'; echo do_shortcode( $my_shortcode ); ?> </div> </div>
No matter what I do the width and height is ignored. Why?
I can set the width and height on the google map with an extra Div but that justs cuts the map to the height I want and the rest of the map overflows.
I have set Overflow to hidden and that hides the Marker, not what I want.
So how can we centre the map to the image, if I have forced the map to the height of the Div?
Morris
The page I need help with: [log in to see the link]
- The topic ‘Can’t set the height on Google Map’ is closed to new replies.