Displaying a map in the application is just the starting point of creating a map-based app. Adding information about places, for example, is one of the most common tasks when working with maps. Let's see how we can add markers to the previously created map by using the Marker class provided by the plugin.
Adding markers to the map
The Marker class
Marker, as mentioned in the documentation, simply marks a geographical location on the map. It adds context information over the map, such as identifying a place, checkpoint, or point of interest.
Markers typically are defined with an icon, and single or multiple actions in its click event. The following properties are some of the most used when adding markers to a map:
- position...