Leaflet: Best alternative to Google Map
· Tile layers, WMS
· Markers, Popups
· Vector layers: polylines, polygons, circles, rectangles
· Image overlays
· Many other types of layers are supported via plugins.
For more information visit: https://leafletjs.com/
// create a map in the "map" div, set the view to a given place and zoom
var map = L.map('map').setView([51.505, -0.09], 13);
// add an OpenStreetMap tile layer
// Tile Usage Policy applies: https://operations.osmfoundation.org/policies/tiles/
attribution: '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors'
Here is my map with my current location: