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

Add pin to Location maps

Scot Hacker преди 8 години
родител
ревизия
39214b54bf
променени са 1 файла, в които са добавени 8 реда и са изтрити 0 реда
  1. 8 0
      bakerydemo/templates/locations/location_page.html

+ 8 - 0
bakerydemo/templates/locations/location_page.html

@@ -33,6 +33,14 @@
           },
           zoom: 8
         });
+        var marker = new google.maps.Marker({
+          position: {
+              lat: {{lat}},
+              lng: {{long}}
+          },
+          map: map,
+          title: '{{page.title}}'
+        });
       }
     </script>
     <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyD31CT9P9KxvNUJOwDq2kcFEIG8ADgaFgw&callback=initMap" async defer></script>