As a quick work-around, I'm forcing zoomChanged in moveTo to be always true
in IE. This seems to work. Additionally, I could try to limit this to large
move values.

Rohan Parkes
Melbourne
Australia

On Mon, Aug 29, 2011 at 1:23 PM, Rohan Parkes <[email protected]>wrote:

> I have an application showing a map of Australia. The base layer is an XYZ
> layer type using a third-party tile provider.
>
> The application allows users to search for addresses. If they search for an
> address that is fairly close to the starting postition, e.g. in the same
> city, everything works as expected. However, if they search for an address
> in another state, the baselayer goes almost completely off the map - you can
> generally only see one tile in the upper LH corner.
>
> This problem does not occur if they use a search mode that changes the zoom
> level - only if the zoom level stays the same. And so far, I have only been
> able to reproduce it in IE (I only have 8, but apparently the same problem
> occurs in 9).
>
> The issue with the zoom level seems to be that the Map class moveTo method
> uses a different technique to reposition the map depending on whether the
> action changes the zoom. If it does, it resets the map parameters -
> specifically the layerContainerDiv.style.left and
> layerContainerDiv.style.top are reset to 0px. If not, the viewport
> container is repositioned via the centerLayerContainer method. This can
> alter the viewport by large amounts.
>
> ...
>
> Rohan Parkes
> Melbourne
> Australia
>
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to