Hi,
We found that there are quite observable changes in MapView when we set the Viewpoint using the same Envelope
Please see attached images.
The coloured rectangle is an GraphicsOverlay inside ArcGIS
The line with 2 circles are drawn on top and of the map, and they do not move between versions.
Note that only the map(and rectangle) is different between versions even with the same viewpoint.
This is the code we use:
mapViewProxy.setViewpoint(Viewpoint(boundingGeometry: Envelope(center: center, width: size, height: size)), duration: 0)
With these variables:
center = Point(latitude: 47.38776035242992, longitude: 8.6554592857211)
zoomedInSize = 0.00034594444524398035
zoomedOutSize = 0.0010085843884744825
We have been using ArcGIS since v100, and only in v200.6.0 is this change observed
Is this a bug? Or perhaps something changed with the way MapView is rendered?
Solved! Go to Solution.
Hi @John_G, this is an expected behavior change where available coordinate systems and transformations have been updated to EPSG v11.015 as mentioned in the 200.6 release notes. In the example you gave using the Samples app, the map view performs an implicit projection because the map has a web mercator spatial reference and the geometry used to set the viewpoint has a WGS84 spatial reference.
At some point in the app are you doing any projecting to arrive at the geometries that you are placing on the map and zooming to?
Not that I know of.
To remove any issues related our integration of ArcGIS, I have reproduced the issue in the Samples app (tag v200.5.0). I compared the library version of arcgis-maps-sdk-swift-toolkit v200.5.0 and v200.6.0
If you compare the images attached, you can see that the v200.6.0 seems to be very slightly zoomed out with an origin of the top margin
You can replicate it in Samples.ChangeViewpointView.swift:54
case .geometry:
let center = Point(latitude: 47.38776035242992, longitude: 8.6554592857211)
let geo = Envelope(center: center, width: 0.0010085843884744825, height: 0.0010085843884744825)
await mapViewProxy.setViewpointGeometry(geo)
Hi @John_G, this is an expected behavior change where available coordinate systems and transformations have been updated to EPSG v11.015 as mentioned in the 200.6 release notes. In the example you gave using the Samples app, the map view performs an implicit projection because the map has a web mercator spatial reference and the geometry used to set the viewpoint has a WGS84 spatial reference.