I'm performing IDL (international date line) testing on an application and am having an issue getting the map extent if the map view crosses over 180 degrees. If I zoom in around the 180 longitude and then use the code below to get the current display extent:
Esri::ArcGIS::Runtime::ViewPoint mapViewPoint = m_mapView->currentViewPoint(Esri::ArcGISRuntime::ViewPointType::BoundingGeometry);
Esri::ArcGIS::Runtime::Envelope *m_pZoomBox = new ESRI::ArcGISRuntime::Envelope(Esri::ArcGISRuntime::GeometryEngine::project(mapViewPoint.targetGeometry().extent(), Esri::ArcGISRuntime::SpatialReference::wgs84()));
Checking the return envelope, results in the xMin being -180 and the xMax being 180 which doesn't help determine the boundary of the extent in view. It seems like there should be a way to convert it to a 0 to 360 reference so you can get the actual extent of the map.
Is there a different call I should make to get the bounds across 180? I'm using ArcGIS Runtime 100.1.
Thanks for any assistance!