[Google Maps API v2] Re: Centering problem with css DIV and DISPLAY:none
> HOWEVER the marker is now offset from the center! It appears to think the
> map is positioned top left of the page.
>
> Anyone come across this problem before?
Many times. When you build the map, it has zero size - its centred at
top left. If you later resize the map i.e. make it visible, you need
to tell it so that it knows to recalculate. Use checkResize()
--
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