In the code I set the zIndex value for the pin, accuracyCircle to be very small (for example, 0), and for the other pins to be large. On 3.0, everything worked fine, but on 3.1 it stopped.
swift 4.2, xcode 10
In the code I set the zIndex value for the pin, accuracyCircle to be very small (for example, 0), and for the other pins to be large. On 3.0, everything worked fine, but on 3.1 it stopped.
swift 4.2, xcode 10
In MapKit 3.1 , it became possible to change the order of drawing layers (or rather, their parts, selected according to the type of objects). Also, it became possible to create your own map objects ' layers. User location got its layer, so it is drawn by default always above placemarks ' s from YMKMap.mapObjects . This can be changed with the following code:
let sublayers = map.sublayerManager let userLocationIndex = sublayers.findFirstOf( withLayerId: YMKLayerNames.userLocationLayerName(), featureType: YMKSublayerFeatureType.placemarks)! let mapObjectsIndex = sublayers.findFirstOf( withLayerId: YMKLayerNames.mapObjectsLayerName(), featureType: YMKSublayerFeatureType.placemarks)! sublayers.moveBeforeWith(from: userLocationIndex.uintValue, to: mapObjectsIndex.uintValue) Source: https://ru.stackoverflow.com/questions/896471/
All Articles