Explorar el Código

Add pin to Location maps

Scot Hacker hace 8 años
padre
commit
39214b54bf
Se han modificado 1 ficheros con 8 adiciones y 0 borrados
  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>