Skip to content

Commit 0add135

Browse files
committed
feat: 增加地图zooms
1 parent 0298939 commit 0add135

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

_posts/2018-02-08-picture-gps.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
layout: main
33
title: 照片位置查看器
44
---
5+
56
<style>
67

78

@@ -171,6 +172,7 @@
171172
var mapOptions = {
172173
center: point,
173174
zoom: 3,
175+
zooms: [2,30]
174176
mapTypeId: google.maps.MapTypeId.ROADMAP
175177
};
176178
var map = new google.maps.Map(ctn, mapOptions);

0 commit comments

Comments
 (0)