Answer the question
In order to leave comments, you need to log in
Swift yandex map how to put a label on tap?
I can’t figure out how to put a label on a tap, namely, how to get the coordinates of a tap on the map
, I put the label itself like this:
let mapObjects = mapView.mapWindow.map.mapObjects
mapObjects.clear()
let placemark = mapObjects.addPlacemark(with: point)
placemark.setIconWith(UIImage(named: "SearchResult")!)
YMKUserLocationTapListener
let userLocationLayer = mapView.mapWindow.map.userLocationLayer
userLocationLayer.setTapListenerWith(self)
func onUserLocationObjectTap(with point: YMKPoint)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question