forked from marsprj/Map5
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
257 additions
and
200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
|
||
<link rel="stylesheet" type="text/css" href="../../lib/css/Map5.min.css"> | ||
|
||
<script type="text/javascript" src="../../lib/jquery-1.11.1.js"></script> | ||
<script type="text/javascript" src="../../lib/Map5.min.js"></script> | ||
|
||
<script type="text/javascript" src="../js/initMap.js"></script> | ||
|
||
<style type="text/css"> | ||
body{ | ||
margin: 0px; | ||
} | ||
|
||
#zoom_div{ | ||
width: 32px; | ||
height: 32px; | ||
position: absolute; | ||
left: 0px; | ||
top: 0px; | ||
background-color: #fda709; | ||
text-align: center; | ||
line-height: 32px; | ||
font-size: 32px; | ||
} | ||
</style> | ||
|
||
<title>事件:级别zoom改变</title> | ||
<body onload="init()"> | ||
<div id="mapDiv" style="height:800px;width:100%;position:absolute;"></div> | ||
<div id="zoom_div"> | ||
3 | ||
</div> | ||
</body> | ||
|
||
|
||
<script type="text/javascript"> | ||
|
||
var mapObj = null; | ||
|
||
function init(){ | ||
loadTileMap(); | ||
registerMapZoomEvent(); | ||
} | ||
|
||
// 注册地图级别改变事件 | ||
function registerMapZoomEvent(){ | ||
mapObj.on(GeoBeans.Event.ZOOM_CHANGE, onMapZoomChange); | ||
} | ||
|
||
// 地图级别改变事件回调函数 | ||
function onMapZoomChange(evt){ | ||
$("#zoom_div").html(evt.zoom); | ||
} | ||
|
||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.