Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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.
share|improve this question

1 Answer 1

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

i hope it helps you...

share|improve this answer
    
ok thanks, i'll modify my code to register for loaded event and see if i can fix the problem. –  portoalet Jul 2 '12 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 ? –  portoalet Jul 3 '12 at 4:18
    
new followup question gis.stackexchange.com/questions/28724/… –  portoalet Jul 3 '12 at 4:24

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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