Answer the question
In order to leave comments, you need to log in
Google maps for the site. What is the best way to insert?
Hello dear!
I rummaged through the Internet, I just can’t figure out how to insert Google maps into the site correctly. There are so many versions. I know that recently embedding Google maps on the site has become paid (with the help of an API key). So with the help of an iframe, all this is done for free and without problems. You just click share and everything, the code is given, everything seems to be fine. So why then pay for an API key and if it is still necessary, then for me, as a developer, where can I read about how to embed this card without an API key (so that the user can then buy and install it himself)?
Also, if possible, please tell me if I want to put my markers on this map, do I still need to use the API from Google?
Thanks in advance for your reply.
Answer the question
In order to leave comments, you need to log in
You can just register an account and get an api key in it, there is a free quota, which, although it has been greatly reduced, is enough for sites with low traffic. Without api key, it’s already impossible to use any method, there will be an error in some form, such as the version of the map is only for development.
If you just need a map, then you can simply insert the generated code on the page by adding a key, and if you need to add something more complicated than just a map, such as labels, descriptions, routes, etc., then you will need to use the js api and create a map through it. https://developers.google.com/maps/documentation/j...
If you just insert a map with markers on the site, then you can use the instructions:
Yandex.Maps
Google Maps
2Gis maps
If you want to dynamically create markers on the map based on the data in the database, then only through the API. And for this, yes, you need a key.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question