On Aug 9, 11:05 am, "Brian M" <[EMAIL PROTECTED]> wrote:
> I'm working with the google maps app.  How can I specify a zoom level for
> the map to appear at?  I'm currently using a url similar 
> to:http://maps.google.com/maps?q=45.235123,-122.144123(My place)
>
> That brings up the map at a zoom level that's too far out.  I've tried
> adding &z=14 -- but it doesn't make a difference.  I've tried adding &spn=
> 0.01 without a difference either.
>
> thanks,
>
> Brian McLaughlin


I have no idea if this will work on the iPhone's map widget (don't
have mine here to test) but try adding something like "&z=15" to the
end of your URL.  When I worked with the Google Maps API a few months
back, I could control the zoom level with the "z" input parameter.  I
think it defaults to zoom level 13, so 15 would be two levels zoomed
in.  I recall that it tops out at 19 for street maps, but satellite
images usually run out of resolution at lower levels.

Google has very good documentation of the Maps API, it's worth
checking out if you plan to use it extensively:

     http://www.google.com/apis/maps/

Look under documentation links on the left.  You can control many
other aspects of the map viewport besides the center point and zoom
levels.  It would be interesting to know how much of this the iPhone's
map widget supports.

Craig


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/iphonewebdev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to