Hi!
I would like to share an effect around Esri::ArcGISRuntime::Layer::fullExtent():
Context:
I have an application which can toggle from 2DMap to 3Dscene and vice versa.
I call Layer::fullExtent() of all 3 basemapLayers to combine them and get the extent of all basemaps. This i done directly connected to Map/Scene::doneLoading.
Effect:
Sometime the fullExtent (Envelope) is empty or xmin, xmax, ymin and ymax are nan (not a number).
This happens related to the 2nd and 3rd basemapLayer.
Possible cause:
I assume that the extent is cached on first request - even if the layer is not loaded yet.
Workaround:
I skip the call to Layer::fullExtent() if the loadStatus is not loaded yet - works
Maybe someone can have a look into the code!?
Thx