Explorar el Código

Adds scale control to map.

Alan Lam hace 8 años
padre
commit
9d6058e039
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      public/js/app.js

+ 1 - 0
public/js/app.js

@@ -63,6 +63,7 @@ function initialiseMaps() {
 		options.center = position;
 		options.zoom = $(this).data("zoom");
 		options.gestureHandling = "greedy";
+		options.scaleControl = true;
 
 		let map = new google.maps.Map(this, options);