Page 1 of 2

How do I scale googlemap for different screen sizes?

Posted: Wed Apr 04, 2012 12:30 am
by Ferrari

I created a test mobile app with just googlemaps. You can test it at x.vu/testgoogle

if I open it in a browser on an iPhone, it looks great. If I open it on a Android tablet, it scales well on width but not on height. If I keep the tablet in portrait the map barely cover half of the screen.

Thanks for your help!


How do I scale googlemap for different screen sizes?

Posted: Wed Apr 04, 2012 11:46 pm
by mcgrathken.kmg

Hi Ferrari

I don't know if you looked here.

https://developers.google.com/maps/do...

this may be some help to you


How do I scale googlemap for different screen sizes?

Posted: Thu Apr 05, 2012 3:00 am
by maxkatz

Would it be possible for you to share the app link with us (Test, check Public)?


How do I scale googlemap for different screen sizes?

Posted: Thu Apr 05, 2012 6:40 pm
by Ferrari

I added a href="mailto:max@exadel.com" rel="nofollow"max@exadel.com/a to my project.

In any event you can just re-create it in 1 minute: just create a new blank mobile app, drag&drop googlemaps, size googlemaps to cover the whole mobile screen (stop as soon as the mobile screen increases in height) and export/test.


How do I scale googlemap for different screen sizes?

Posted: Thu Apr 05, 2012 6:42 pm
by maxkatz

OK, we'll try to recreate. If you want to share, please share the app with a href="mailto:support@tiggzi.com" rel="nofollow"support@tiggzi.com/a


How do I scale googlemap for different screen sizes?

Posted: Thu Apr 05, 2012 6:48 pm
by Ferrari

shared with a href="mailto:support@tiggzi.com" rel="nofollow"support@tiggzi.com/a. Thanks!


How do I scale googlemap for different screen sizes?

Posted: Fri Apr 06, 2012 2:34 pm
by Julia Babenko

Map is scaled by container width but not on height. You need to change screen size to 1024x768 and change map dimension for it to be shown correctly on tablet.


How do I scale googlemap for different screen sizes?

Posted: Sat Mar 15, 2014 10:20 am
by Tom6106181

I had the same problem, did this;
code
// googleMap default height: 220px, width: auto
var viewport_height = $(window).height();
if (viewport_height > 500) {
$('div[dsid="googleMap"]').height('440px');
}
/code


How do I scale googlemap for different screen sizes?

Posted: Sat Mar 15, 2014 12:22 pm
by Alena Prykhodko

Hello Tom,

If you want to scale to full size you can use this approach https://getsatisfaction.com/apperyio/...


How do I scale googlemap for different screen sizes?

Posted: Sat Mar 15, 2014 12:25 pm
by Tom6106181

ok.
I only needed to change the map height on iphone = 220px, on Ipad = 440px.
And it is working smooth the approach I posted above.