Closed rolson closed 2 months ago
I believe for this you'd use the optional map
parameter on forMapView(with:visibleArea:map:)
or forSceneView(with:map:)
.
We are currently using arcGISTopographicBase
for the basemap style. For the case where the user hasn't provided their own map, we could switch to using a style with a dark equivalent and then automatically switch between the two.
For the case where the user hasn't provided their own map, we could switch to using a style with a dark equivalent and then automatically switch between the two.
@philium Wouldn't the component then need a method of tracking the current primary basemap?
No. We would just need to know what the current mode is (light/dark), which we could get from SwiftUI.
Sorry, the map I tested this with was topo, and so I thought that overview map used the same as the regular map (I'm not sure how I thought that was happening technically, magic?). Closing since the behavior I was asking for was based on a misunderstanding of the intention of this component.
The OverviewMap control is great. I have noticed, however, that if you switch basemaps, the overview map component doesn't also switch. Should it?