Sunday, May 15, 2011

[Google Maps API v2] Re: Google map full screen

On May 15, 2:49 pm, ss ss <shaisoftwa...@gmail.com> wrote:
> Dear Andrew,
>                    I have solved it with the left zero value. I dont quite
> understand how to tell the map the resize have happen to the tiling will be
> fine? Once my div is 100% will be automatically done?

No: you have to tell the map to recalculate its size.
http://code.google.com/apis/maps/documentation/javascript/v2/reference.html#GMap2.checkResize

> Any idea on this
> "probably recentre the map so it looks like the edges have expanded rather
> than the div has been moved".

You need to work out the centre pixel of your map, find its geographic
location, resize the map (including the checkResize) and then re-
centre it to the location you found.
http://code.google.com/apis/maps/documentation/javascript/v2/reference.html#GMap2.fromContainerPixelToLatLng

> I am also trying to solve the last problem on
> Terms. Can relocate the terms to another location?

You can't relocate the Terms link. You can reposition your control to
avoid it.

http://code.google.com/apis/maps/documentation/javascript/v2/reference.html#GControl.getDefaultPosition
http://code.google.com/apis/maps/documentation/javascript/v2/reference.html#GControlPosition
http://code.google.com/apis/maps/documentation/javascript/v2/reference.html#GSize

--
You received this message because you are subscribed to the Google Groups "Google Maps API V2" group.
To post to this group, send email to google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate