I am using Yandex's MapKit
in my android application. The documentation is very lacking and not helpful at all. I did the basic set-up. Map is working fine. But I am having problems with:
- How to add marker on the map? I tried the code they suggested:
val mapObjects = mapView.map.mapObjects.addCollection()
val mark: PlacemarkMapObject = mapObjects.addPlacemark(Point(X, Y))
mark.opacity = 0.5f
mark.setIcon(ImageProvider.fromResource(requireContext(), R.drawable.ic_heart))
mark.isDraggable = true
It is not working and marker is not showing on the map.
- But I would like to enable some other controls the map offers. Like zoom in and search. Take a look at the picture:
How can I add those controls on my mapView
? Any suggestions would be greatly appreciated.