+ 1

How can I add specific location from google map to my website

I want to add specific locations from google map in my website! My website programmed with HTML ! Is it necessary to use another programming language such JavaScript?

12th Dec 2016, 3:55 PM
Rawabi
2 Respostas
+ 2
script: <script> var x = document.getElementById("test"); function getLocation() {     if (navigator.geolocation) {         navigator.geolocation.getCurrentPosition(showPosition);     } else {         x.innerHTML = "when Geolocation isn't supported or something .";     } } function showPosition(position) {     x.innerHTML = "Latitude: " + position.coords.latitude +      "<br>Longitude: " + position.coords.longitude;  } </script>
12th Dec 2016, 5:07 PM
Abdelaziz Abubaker
Abdelaziz Abubaker - avatar
15th Dec 2016, 11:21 AM
Ирина Казаченко
Ирина Казаченко - avatar