📜 ⬆️ ⬇️

Google maps with a human address.

I saw an article about gmap and decided to add some of my information.
Just a couple of weeks ago, it was necessary to integrate gmap directly with the site. 35 zones were given and they had to be shown on certain pages. Of course, it was possible to create 35 variables and establish the correspondence of the zone-coordinates. But it would be somehow tedious) I started to search first in google maps api. I did not find a suitable one. Is that just a search engine on the cards. But it did not fit. I went further. And lo and behold =) But at first I did not understand this. geotop here you can select the desired algorithm. Now we will fasten it. Choose a card that we like, but I advise mine. Farther-
just part of the code, in theory everything should be clear.
script src="http://maps.google.com/maps?file=api&v=1&key= " type="text/javascript">

div id = "map" style = "width: 650px; height: 500px "> *** map


script type = "text / javascript">

var map = new GMap (document.getElementById ("map"));
map.addControl (new GLargeMapControl ());
map.addControl (new GMapTypeControl ());
/ script>
script type = "text / javascript" src = " geo.localsearchmaps.com/?city= ? echo $ local? & country = pt »> ***** here! And here I entered the path directly to the script
/ script>
/ div>
')

Everything is clear with the map, now we will look here

Source: https://habr.com/ru/post/12939/


All Articles