PK20 PK20 - 1 year ago 91
Swift Question

Current GPS location using ArcGIS in IOS

I understand that


will position the current location marker in the arcGIS map and the image of the current location marker can be changed by adding a image file named LocationDisplay.png inside the project.

By default, the current location icon is a blue circle icon. This icon is by default enclosed within a circle (that has animation).
When we enlarge the map to the maximum scale, the enclosed circle around the blue circle icon also increases.
Changing the icon image is of no help as it changes only the blue circle icon to the image we change but the enclosed circle remains.
Please suggest if there is any option for us to remove that animation around the current location icon.

P.S: I am aware that we can get the current location from coreLocation and can place custom marker. Any other better possibilities are welcome.


Answer Source

accuracySymbol is the symbol that is used to show the accuracy of the location.

mapView.locationDisplay.accuracySymbol = [AGSSimpleFillSymbol simpleFillSymbolWithColor:[UIColor clearColor] outlineColor:[UIColor clearColor]];

This is Objective-C code. (Please convert to swift.)