Full screen on iphone

156 views
Skip to first unread message

Stefano.pass

unread,
Aug 6, 2010, 3:13:22 PM8/6/10
to Google Maps JavaScript API v3
Hi to all, I've a problem creating a web page for iPhone.
I need to create a web page with only a map div that fit all the
screen (without the address bar).

I try to set width and height to 100% and I've add the script to hide
the bar (http://www.iphonemicrosites.com/tutorials/how-to-hide-the-
address-bar-in-mobilesafari/) but nothing...

Anyone can help me?
Thanks a lot
Stefano

Kesuke

unread,
Aug 6, 2010, 9:01:33 PM8/6/10
to Google Maps JavaScript API v3
Can you provide a link to the webpage you are making. It's impossible
for us to debug your code without seeing it.



On Aug 6, 8:13 pm, "Stefano.pass" <stefano.passiat...@gmail.com>
wrote:

Gabriel Svennerberg

unread,
Aug 7, 2010, 4:44:05 AM8/7/10
to Google Maps JavaScript API v3
Hi Stefano,

I recently wrote an article about how to this.
http://www.svennerberg.com/2010/07/google-maps-api-3-%e2%80%93-mobile-devices/

Best,
Gabriel

Stefano.pass

unread,
Aug 7, 2010, 7:44:03 AM8/7/10
to Google Maps JavaScript API v3
Hi Gabriels, thanks a lot... But I need this page without the address
bar of safari...
How it's possibile?

thanks Stefano

On 7 Ago, 10:44, Gabriel Svennerberg <gabr...@svennerberg.com> wrote:
> Hi Stefano,
>
> I recently wrote an article about how to this.http://www.svennerberg.com/2010/07/google-maps-api-3-%e2%80%93-mobile...
>
> Best,
> Gabriel

Stefano.pass

unread,
Aug 7, 2010, 7:44:27 AM8/7/10
to Google Maps JavaScript API v3
thanks, ASAP I publish the page...
thanks
Stefano

Stefano.pass

unread,
Aug 9, 2010, 3:27:19 AM8/9/10
to Google Maps JavaScript API v3
Hi! This is the page: http://forum.lineacomune.it/temp.html
If iphone the script add 60px to the height of map div and call the
function window.scrollTo(0, 1) to hide the bar but don't work...
thanks a lot
Stefano

Stefano.pass

unread,
Aug 9, 2010, 3:51:03 AM8/9/10
to Google Maps JavaScript API v3
Ok, I've resolved!!!
I call the initialize map function after create the div!
thanks
Stefano
Reply all
Reply to author
Forward
0 new messages