AnsweredAssumed Answered

The ArcGIS type LocationDisplay is not creatable

Question asked by noraul on May 5, 2020
Latest reply on May 14, 2020 by noraul

I am not so experience with programming, I built a custom app with appstudio for arcgis 1.0 and on the process of the upgrade to appstudio for arcgis 4.2 some modules and classes have changed. I not that familiar with all the changes. Now I am getting a error message "the arcgis type location display is not creatable"

here is part of the code where i get the error message.
onLoadStatusChanged: {

if (loadStatus === Enums.LoadStatusLoaded) {
mapView.locationDisplay.autoPanMode = Enums.LocationDisplayAutoPanModeRecenter;
mapView.locationDisplay.start();
}
}

// onLoadStatusChanged: {
// if (status === Enums.MapStatusReady) {
// positionSource.active = true;
// }
// }
//CREATE USER POSITION DISPLAY modified 042120

LocationDisplay {
id: locationDisplay
positionSource: PositionSource {
id: positionSource
}
}

Outcomes