Using the ArcGIS Runtime 100.1 we are creating an application that is already reading the GPS device and the map is to display the current location of the device. The Esri.ArcGISRuntime.Location.LocationDataSource has been inherited from to create a new class that is used to set the location based on the GPS device. The new class calls on the base.UpdateLocation with the information from the GPS device.
The current location is being correctly displayed on the map. The issue is that the symbol that is displayed is gray rather than the default blue. We would like to use the default symbols and not have to configure a different symbol. The question is, why is the symbol gray and not blue. When the default LocationDataStore is used with the MapView.DisplayLocation, the blue symbol is used.
Thanks,
Scott
Solved! Go to Solution.
Are you setting the last parameter 'IsLastKnown' in the location object to true or false? (You want to set it to false, or it's going to consider the location "outdated" and will turn gray).
Are you setting the last parameter 'IsLastKnown' in the location object to true or false? (You want to set it to false, or it's going to consider the location "outdated" and will turn gray).
Thanks Morten! Setting the Location.IsLastKnown = false worked; the active blue symbol is used.