Hi all,
I'm working with Dynamic Map and Tiled Map samples from AppStudio in Qt creator.
I was trying to use local services with custom projections (WGS84) but when I run the sample, the window appears blank.
We have tried this in Javascript API and it works fine.
Any suggestions??
cc jimy cuesta
Solved! Go to Solution.
that is what I figured would happen. It is an issue reading the service as it uses wkt instead of wkid. It is a bug in the API. We are working on a fix and it should be available in one of the upcoming AppStudio releases
If you add some code like the following, do you see an error emitted?
ArcGISDynamicMapServiceLayer { url: "http://sampleserver6.arcgisonline.com/arcgis/rest/services/Water_Network/MapServer" onStatusChanged: { if (status === Enums.LayerStatusErrored) { console.log("error:", error); } } }
No, I don't get any error.
It displays fine with arcgis services.
Can you use that code but swap out the service URL with your device URL, and see if you get any errors?
This error is shown, what should I do??
"qml: error: Layer does not have a valid spatial reference."
that is what I figured would happen. It is an issue reading the service as it uses wkt instead of wkid. It is a bug in the API. We are working on a fix and it should be available in one of the upcoming AppStudio releases
Ok, so we'll be waiting for it!
Thank you very much for your response Lucas,
Regards
Marco