Ask a questionAsk a question
 

AnswerOnMouseWheel Event Question

  • Saturday, November 07, 2009 5:28 AMResponse.Cookies Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I'm loading a dynamic xml file (GEORSS) when a user changes the zoom using the onmousewheel event.

    It works great, however it's loading the XML for the map at the beginning zoom level.

    When I zoom out, it grabs all the listings that were in the previous zoom level and displays them.

    My question is this:  Is there a way to determine when the map has finished zooming, and THEN grab the topleft and bottomright and query the dynamic xml?

    The SQL query is something like "select * from places where lat > minlat and lat < maxlat and lon > minlon and lon < maxlon"

    The minlat, maxlat, minlon, and maxlon variables being passed to this query are the starting zoom's topleft and bottomright properties.

    Since tiles will zoom and load at various speeds, I need a way to determine when it's finished zooming so I can THEN grab the appropriate topleft and bottomright values.

    Hope that makes sense.  Hopefully someone can point me in the right direction.

    Thanks for the help!

Answers

All Replies