Hi, we display a map with a spatial reference with wkid 3857. We use locationDisplay to track the user's position. Now we found out that this position comes in wkid 4326. Can you tell he where I can set the wkid for locationDisplay and why both differ?
Solved! Go to Solution.
I assume you are using SystemLocationDataSource (the default) to track the user's location. SystemLocationDataSource uses Android's LocationManager, which provides locations in WGS 84. In order to get the corresponding location in the MapView's projection, you should use LocationDisplay.mapLocation.
I assume you are using SystemLocationDataSource (the default) to track the user's location. SystemLocationDataSource uses Android's LocationManager, which provides locations in WGS 84. In order to get the corresponding location in the MapView's projection, you should use LocationDisplay.mapLocation.
Hi @GuntherHeppner, we use LocationDisplay.location and not mapLocation. This might result in the spatial reference difference.