<?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: MapPropertyChangeEvent Issue with MapView Extent in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/mappropertychangeevent-issue-with-mapview-extent/m-p/1020310#M6079</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/201161"&gt;@KirkKuykendall1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;My question is that the bbox of extent value from mapview camera is wrong and still based on the previous spatialreference whereas spatialreference of its extent is updated.&lt;/P&gt;&lt;P&gt;Refer to my example : I update map spatialreference from projected to geographics, the value capture in map property change event is that value.&lt;/P&gt;&lt;P&gt;XMax: -1776117.1635439098&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; XMin: -1900502.3492182&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; YMax: 12016785.670364719&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; YMin: 11967047.984130006&lt;/P&gt;&lt;P&gt;But yes, the bbox extent value become in sync in the camera view change event later on.&lt;/P&gt;&lt;P&gt;It seems pro sdk is still in progress of updating the extent value during the map property change event.&lt;/P&gt;&lt;P&gt;In my opinion, it is a bug, pro shouldn't update partial property value during map property change event as well, or may be because of thread issue.&lt;/P&gt;&lt;P&gt;If they decided to update bbox values of extent in Camera change event, should have done all update in that place.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Jan 2021 01:26:47 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2021-01-27T01:26:47Z</dc:date>
    <item>
      <title>MapPropertyChangeEvent Issue with MapView Extent</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/mappropertychangeevent-issue-with-mapview-extent/m-p/1019540#M6062</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my addin, I subscribe to MapPropertyChangeEvent to get updated spatialreference and extent of current map view.&lt;/P&gt;&lt;P&gt;I correctly get updated SpatialReference in the event, but I got MapView extent boundingbox values are remained the same as old spatialreference value.&lt;/P&gt;&lt;P&gt;I am using this code in the MapPropertyChangeEvent to get current MapView extent.&lt;/P&gt;&lt;P&gt;MapView.Active.Extent&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example after I change map's spatial reference from projected coordinate system,&amp;nbsp;&lt;/P&gt;&lt;P&gt;From&amp;nbsp;&lt;/P&gt;&lt;P&gt;"PROJCS[\"AGD_1966_AMG_Zone_50\",GEOGCS[\"GCS_Australian_1966\",DATUM[\"D_Australian_1966\",SPHEROID[\"Australian\",6378160.0,298.25]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Transverse_Mercator\"],PARAMETER[\"False_Easting\",500000.0],PARAMETER[\"False_Northing\",10000000.0],PARAMETER[\"Central_Meridian\",117.0],PARAMETER[\"Scale_Factor\",0.9996],PARAMETER[\"Latitude_Of_Origin\",0.0],UNIT[\"Meter\",1.0]]"&lt;/P&gt;&lt;P&gt;to geographic&lt;/P&gt;&lt;P&gt;"GEOGCS[\"GCS_WGS_1984\",DATUM[\"D_WGS_1984\",SPHEROID[\"WGS_1984\",6378137.0,298.257223563]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]]"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting mapview extent boundingbox as in&lt;/P&gt;&lt;P&gt;XMax: -1776117.1635439098&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; XMin: -1900502.3492182&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; YMax: 12016785.670364719&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; YMin: 11967047.984130006&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I subcribed the map property change event in constructor and using arcgis pro sdk 2.7.&amp;nbsp; Is there any other way I can extract current mapview extent correctly upon spatial reference change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Than&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 07:01:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/mappropertychangeevent-issue-with-mapview-extent/m-p/1019540#M6062</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-01-25T07:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: MapPropertyChangeEvent Issue with MapView Extent</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/mappropertychangeevent-issue-with-mapview-extent/m-p/1019671#M6066</link>
      <description>&lt;P&gt;At first glance, it looks like changing the SpatialRef also triggers a change in the camera.&amp;nbsp; When MapViewCameraChangedEvent occurs, the extent appears to be in sync with the spatialref.&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;ArcGIS.Desktop.Mapping.Events.MapViewCameraChangedEvent.Subscribe((e) =&amp;gt;
{
    try
    {
        if(e.PreviousCamera != null)
        {
            int previousWkid = e.PreviousCamera.SpatialReference.Wkid;
            var currentWkid = e.CurrentCamera.SpatialReference.Wkid;
            Debug.Print($"{previousWkid} {currentWkid} {MapView.Active.Extent.Width}");
        }
    }
    catch(Exception ex)
    {
        Debug.Print(ex.Message);
    }
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 16:05:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/mappropertychangeevent-issue-with-mapview-extent/m-p/1019671#M6066</guid>
      <dc:creator>KirkKuykendall1</dc:creator>
      <dc:date>2021-01-25T16:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: MapPropertyChangeEvent Issue with MapView Extent</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/mappropertychangeevent-issue-with-mapview-extent/m-p/1020310#M6079</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/201161"&gt;@KirkKuykendall1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;My question is that the bbox of extent value from mapview camera is wrong and still based on the previous spatialreference whereas spatialreference of its extent is updated.&lt;/P&gt;&lt;P&gt;Refer to my example : I update map spatialreference from projected to geographics, the value capture in map property change event is that value.&lt;/P&gt;&lt;P&gt;XMax: -1776117.1635439098&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; XMin: -1900502.3492182&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; YMax: 12016785.670364719&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; YMin: 11967047.984130006&lt;/P&gt;&lt;P&gt;But yes, the bbox extent value become in sync in the camera view change event later on.&lt;/P&gt;&lt;P&gt;It seems pro sdk is still in progress of updating the extent value during the map property change event.&lt;/P&gt;&lt;P&gt;In my opinion, it is a bug, pro shouldn't update partial property value during map property change event as well, or may be because of thread issue.&lt;/P&gt;&lt;P&gt;If they decided to update bbox values of extent in Camera change event, should have done all update in that place.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 01:26:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/mappropertychangeevent-issue-with-mapview-extent/m-p/1020310#M6079</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-01-27T01:26:47Z</dc:date>
    </item>
  </channel>
</rss>

