改变默认范围
This commit is contained in:
parent
c7a72f41f9
commit
6e4dd17690
|
@ -41,12 +41,11 @@ $(function() {
|
||||||
});
|
});
|
||||||
var bounds = null;
|
var bounds = null;
|
||||||
var rect = null;
|
var rect = null;
|
||||||
var map,zoom=10,rectTool;
|
var map,zoom=6,rectTool;
|
||||||
var rectangle;
|
|
||||||
var input = {east:'#east',west:'#west',north:'#north',south:'#south'};
|
var input = {east:'#east',west:'#west',north:'#north',south:'#south'};
|
||||||
|
|
||||||
//加载地图
|
//加载地图
|
||||||
var myLatlng = new TLngLat(105.819946,35.656456);
|
var myLatlng = new TLngLat(97,38);
|
||||||
map = new TMap("map_canvas");
|
map = new TMap("map_canvas");
|
||||||
map.centerAndZoom(myLatlng,zoom);
|
map.centerAndZoom(myLatlng,zoom);
|
||||||
map.enableHandleMouseScroll();
|
map.enableHandleMouseScroll();
|
||||||
|
|
Loading…
Reference in New Issue