1

Problem:

  1. layer transition effect: resize
  2. Do programmatic map.zoomToExtent() to somewhere OUTSIDE of current wms map bounds
  3. OpenLayers setCenters to target bounds and zooms in.
  4. While new wms image is being downloaded, OpenLayers displays 'enlarged' map
  5. Once wms image is loaded, it's transitioned into map viewport

Is there a way to 'prevent' OpenLayers from set-centering at #3 until wms image is downloaded ?

What I want:

  1. as above
  2. as above
  3. as above
  4. OpenLayers doesn't setCenter nor zoom-in (or just doesn't update map)
  5. if new WMS image is loaded, then update map.

1 Answer 1

1

you can check out my answer here which can give u some aspect about what u want.

i hope it helps you...

3
  • ok thanks, i'll modify my code to register for loaded event and see if i can fix the problem.
    – Lydon Ch
    Jul 2, 2012 at 7:56
  • This doesn't help, as OpenLayers move the center to new location, and THEN request new tile based on new extent. Can we request new image for an extent without moving the map ?
    – Lydon Ch
    Jul 3, 2012 at 4:18
  • new followup question gis.stackexchange.com/questions/28724/…
    – Lydon Ch
    Jul 3, 2012 at 4:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.