Member-only story

Google map alternative to embed map in websites

Rabin Poudyal
2 min readMar 27, 2019

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…

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Rabin Poudyal
Rabin Poudyal

Written by Rabin Poudyal

Software Engineer, Data Science Practitioner. Say "Hi!" via email: rabinpoudyal1995@gmail.com or visit my website https://rabinpoudyal.com.np

No responses yet

Write a response

Recommended from Medium

Lists

See more recommendations