[OpenLayers-Users] Problem with zoomexents and google maps layer

Bill Woodall bwoodall at bwoodall.org
Mon Jul 16 13:11:04 EDT 2007


Hi Steve,

After looking at your example I noticed that you are using CSS
(width:100%) for your map div and thus the browser will set the viewport
width and the viewport might never equal the bounds you set.

......Bill,

On Mon, 2007-07-16 at 10:43 -0400, Stephen Woodbridge wrote:
> Chris,
> 
> Attached is an html test case. You will probably need to set the google 
> key to your host. This was run using OL 2.4. Sorry for the file instead 
> of a URL, I didn't have a host with a google key that was publically 
> accessible and readily accessible to me to post the example.
> 
> Les also tried John Cole's suggestion, but that did not solve the 
> problem either.
> 
> -Steve
> 
> Christopher Schmidt wrote:
> > On Fri, Jul 13, 2007 at 05:43:42PM -0400, Stephen Woodbridge wrote:
> >> Hi all,
> >>
> >> I have run into an annoying issue that if you zoom to an extents the 
> >> extents is not always inside the viewport, so if I have a bunch of 
> >> points and zoom to their extents, sometimes some of the points are 
> >> outside the viewport after the zoom.
> >>
> >> Is there a fix or workaround for this problem?
> > 
> > Can you provide a test case for this?
> > 
> > Regards,
> 
> HTML page attachment (google-ol-bug.html)
> OpenLayers With Google Layer Example
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users




More information about the Users mailing list