Member-only story
Google map alternative to embed map in websites

Few months ago Google changed their policies on how to let users use their maps. It caused many problems for users who were using google maps. Even though they still have free service defined by their limits having to give credit card information ahead of time to use maps seems to be too much. So in this post I am going to write about an open source library which can do thing for us.
The one that I used recently was Leaflet. It is an open source JavaScript library for mobile friendly interactive maps. It is very minimal and contains all the features.
To use the map we just need to put these two tags in our head section
Then we can write following code to put the map in our code
Here first parameter of setView is array of latitude and longitude and second parameter…