浏览代码

Adds scale control to map.

Alan Lam 8 年之前
父节点
当前提交
9d6058e039
共有 1 个文件被更改,包括 1 次插入 和 0 次删除
  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);