Преглед на файлове

Add a marker on google maps

Amauri CHAMPEAUX преди 4 години
родител
ревизия
1fca353559
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      tarteaucitron.services.js

+ 1 - 0
tarteaucitron.services.js

@@ -1279,6 +1279,7 @@ tarteaucitron.services.googlemaps = {
                     center: new google.maps.LatLng(parseFloat(document.getElementById(uniqIds[i]).getAttribute('latitude'), 10), parseFloat(document.getElementById(uniqIds[i]).getAttribute('longitude'), 10))
                 };
                 map = new google.maps.Map(document.getElementById(uniqIds[i]), mapOptions);
+		new google.maps.Marker({position:{lat:parseFloat(document.getElementById(uniqIds[i]).getAttribute('latitude'), 10),lng:parseFloat(document.getElementById(uniqIds[i]).getAttribute('longitude'), 10)},map:map});
             }
         };
     },