<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: drill down on map in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/drill-down-on-map/m-p/219700#M5504</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Do you want the polygon of the state, or the point of where you right-clicked?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried the point where I clicked, but it didn't work right.&amp;nbsp; When setting the geometry of the point to Query object, it doesn't return any data.&amp;nbsp; I guess I need the Polygon, but I don't know all the numbers to create the Polygon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The way I get the point is MouseButtonEventArgs.getPosition(myMap), then I create a MapPoint object using the Point x and y.&amp;nbsp; Don't know what I missed.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Jun 2010 16:01:53 GMT</pubDate>
    <dc:creator>ThaoNguyen</dc:creator>
    <dc:date>2010-06-15T16:01:53Z</dc:date>
    <item>
      <title>drill down on map</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/drill-down-on-map/m-p/219696#M5500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm looking for a sample that when I double click a selected state, the map is zoomed in at street level of that state.&amp;nbsp; I tried MyMap.Zoom(), but sometimes the selected state is out of view.&amp;nbsp; Is there a way we can get the position of the selected state and zoom in the middle?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also create a context menu which has Drill down option, clicking on this option will do the same as above.&amp;nbsp; Again, I want to do what I state above, but haven't found a way :(.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The drill down event handler method:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;void drillDownMenuItem_Click(object sender, RoutedEventArgs e)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyMap.Zoom(2.0); //test&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jun 2010 17:54:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/drill-down-on-map/m-p/219696#M5500</guid>
      <dc:creator>ThaoNguyen</dc:creator>
      <dc:date>2010-06-09T17:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: drill down on map</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/drill-down-on-map/m-p/219697#M5501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can zoom to any geometry, so if you have the geometry or envelope of the state, you can simply do:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;myMap.ZoomTo(geometry);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This will fit the state in the view.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jun 2010 19:28:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/drill-down-on-map/m-p/219697#M5501</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2010-06-09T19:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: drill down on map</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/drill-down-on-map/m-p/219698#M5502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You can zoom to any geometry, so if you have the geometry or envelope of the state, you can simply do:&lt;BR /&gt;myMap.ZoomTo(geometry);&lt;BR /&gt; &lt;BR /&gt;This will fit the state in the view.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is another question but is related to drilldown.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On a map, I have 3 states selected or highlighted, when right clicking 1 state, a menu is displayed and I can select "Drill down" option.&amp;nbsp; I want to get the geometry of the clicked point, then do the query task which returns me the data of that state.&amp;nbsp; I am able to do the query task, but now, I don't know how to get the right geometry of the clicked state.&amp;nbsp; As you know, giving the wrong geometry will return wrong data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I really appreciate your help!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jun 2010 14:05:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/drill-down-on-map/m-p/219698#M5502</guid>
      <dc:creator>ThaoNguyen</dc:creator>
      <dc:date>2010-06-15T14:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: drill down on map</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/drill-down-on-map/m-p/219699#M5503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Do you want the polygon of the state, or the point of where you right-clicked?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jun 2010 15:38:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/drill-down-on-map/m-p/219699#M5503</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2010-06-15T15:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: drill down on map</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/drill-down-on-map/m-p/219700#M5504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Do you want the polygon of the state, or the point of where you right-clicked?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried the point where I clicked, but it didn't work right.&amp;nbsp; When setting the geometry of the point to Query object, it doesn't return any data.&amp;nbsp; I guess I need the Polygon, but I don't know all the numbers to create the Polygon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The way I get the point is MouseButtonEventArgs.getPosition(myMap), then I create a MapPoint object using the Point x and y.&amp;nbsp; Don't know what I missed.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jun 2010 16:01:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/drill-down-on-map/m-p/219700#M5504</guid>
      <dc:creator>ThaoNguyen</dc:creator>
      <dc:date>2010-06-15T16:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: drill down on map</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/drill-down-on-map/m-p/219701#M5505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The geometry doesn't need to be a polygon. It's working with a point as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is a sample : &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SpatialQuery"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SpatialQuery&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It looks like you missed to convert the screen coordinates to map coordinates. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Add something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;mapPoint = myMap.ScreenToMap(point);&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jun 2010 09:26:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/drill-down-on-map/m-p/219701#M5505</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2010-06-16T09:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: drill down on map</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/drill-down-on-map/m-p/219702#M5506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The geometry doesn't need to be a polygon. It's working with a point as well.&lt;BR /&gt;Here is a sample : &lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SpatialQuery"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SpatialQuery&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It looks like you missed to convert the screen coordinates to map coordinates. &lt;BR /&gt;Add something like:&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;mapPoint = myMap.ScreenToMap(point);&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!!&amp;nbsp; Using ScreenToMap works.&amp;nbsp; I didn't know this.&amp;nbsp;&amp;nbsp; Yes, I agree that it doesn't have to be a polygon, I was answering the previous question by another member about either point or polygon.&amp;nbsp;&amp;nbsp; Point didn't work for me before converting to map point.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm very new to esri wpf.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jun 2010 12:13:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/drill-down-on-map/m-p/219702#M5506</guid>
      <dc:creator>ThaoNguyen</dc:creator>
      <dc:date>2010-06-16T12:13:45Z</dc:date>
    </item>
  </channel>
</rss>

