Select to view content in your preferred language

Zoom to location that includes change in time extent

519
0
05-17-2011 05:10 AM
deleted-user-rQoEFM5qzbHE
Deactivated User
I am trying to implement a way for the user to press a button that zooms to a location (chosen by the user) and displays points within a specified time frame (also chosen by the user). I have attempted this in a couple of different ways, but none seem to work.

Currently, I have a combobox that has a set of geography. Once the user selects the geography of his/her choice, the map automatically zooms to it. I then have two DateFields (start/end) and want the user to choose the timeframe for which to display the data (a layer of points over several years). After reading some about TimeExtent, I have attempted to implement this with little success.

I am trying to do this through a query where the 'where' part is the geography selected by the user and also updates the TimeExtent.

I have set up initial values in the DateFields, but am not sure how to code that changes have been made. Below is the code for the Query part.

<esri:Query id="crashCntyQuery"
     outSpatialReference="{safetyMap.spatialReference}"
     returnGeometry="true"
     text="{location.selectedItem}"
     timeExtent="{te}"/>


Any help would be greatly appreciated.

jeremy
Tags (2)
0 Kudos
0 Replies