Hi All!
I´m able to use the screenToLocation/screenToBaseSurface call to get the appropriate location containing x and y and also the desired elevation available at z().
The necessery assignment of the elevationSourceUrl is simple and it worsk for 3D - fine.
But whats about 2D:
Eric Bader gave me the hint to have a look at the Surface class - Surface Class | ArcGIS for Developers and its locationToElevation method.
Unfortunatly i can´t get it work.
What i did:
- create Esri::ArcGISRuntime::ArcGISTiledElevationSource per URL
- create Esri::ArcGISRuntime::Surface using the elecationSources (as QList)
- request elevation by
- connect locationToElevationCompleted to an appropriate slot (onLocationToElevationCompleted)
- call locationToElevation on that surface
but the result in onLocationToElevationCompleted is nan (not a number)
My questions are:
What is missing? Like:
- Where do i have to call Loadable::load()?On Surface (cascading loading?) or every ArcGISTiledElevationSource directly? Or both?
- Do i have to enable the single ArcGISTiledElevationSources? (setEnable())
I think there are many question for an essential problem, isn´t it?
Is there an example?
Thanks in advance!
Norbert