Hello Ting,
Thank you for your answer. But I'm looking for swift UI View.
Like :
struct GisMapView: View {
var map = Map(basemapStyle: .arcGISTopographic)
func loadMap(){
self.map.maxExtent = Envelope(xMin: self.xMin!, yMin: self.yMin!, xMax: self.xMax!, yMax: self.yMax!, spatialReference: .wgs84)
self.map.initialViewpoint = Viewpoint(boundingGeometry: self.map.maxExtent!.center, camera: Camera(lookingAt: self.map.maxExtent!.center, distance: 5500, heading: 150, pitch: 20, roll: 0))
}
var body: some View {
MapView(map: map)
}
}
This is the code I wrote but it's not reflecting on map. Map is loading but not in particular camera location.
Hope this way I explained my query.