<!doctype html>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-cache, must-revalidate" />
<meta http-equiv="Expires" content="0" />
<style>
#allmap{width:100%;height:700px;}
.anchorBL > a { display: none; }
.BMap_cpyCtrl { display: none; }
</style>
</head>
<body style="margin:0;padding:0">
<div id="allmap"></div>
<script src="bmap_offline/jquery_1.9.js"></script>
<script src="bmap_offline/map_load.js"></script>
<script>
$(function () {
$("#allmap").height($(window).height() - 1);
bmapcfg.tiles_dir = "china_1";
var other_layer = [''];
var map = new BMap.Map("allmap", { minZoom: 1, maxZoom: 19 });
map.centerAndZoom(new BMap.Point("107.027397", "33.619973"), 5);
map.enableScrollWheelZoom(true);
map.enableKeyboard();
var blc_opts = { anchor: BMAP_ANCHOR_BOTTOM_RIGHT, offset: new BMap.Size(110, 5) }
var ctl_blc = new BMap.ScaleControl(blc_opts);
map.addControl(ctl_blc);
var navigation_opts =
{
anchor: BMAP_ANCHOR_TOP_LEFT,
offset: new BMap.Size(10, 10),
type: BMAP_NAVIGATION_CONTROL_ZOOM
}
var ctl_navigation = new BMap.NavigationControl(navigation_opts);
map.addControl(ctl_navigation);
var overview_opts =
{
isOpen: true,
anchor: BMAP_ANCHOR_BOTTOM_RIGHT,
offset: new BMap.Size(0, 0),
size: new BMap.Size(100, 100)
}
var ctl_overview = new BMap.OverviewMapControl(overview_opts);
map.addControl(ctl_overview);
function ZoomLvControl() {
this.defaultAnchor = BMAP_ANCHOR_TOP_LEFT;
this.defaultOffset = new BMap.Size(10, 55)
}
ZoomLvControl.prototype = new BMap.Control();
ZoomLvControl.prototype.initialize = function (map) {
var div = document.createElement('div');
div.setAttribute("class", "map_lv");
div.appendChild(document.createTextNode(map.getZoom()));
map.getContainer().appendChild(div);
return div;
}
map.addControl(new ZoomLvControl());
function PointControl() {
this.defaultAnchor = BMAP_ANCHOR_BOTTOM_LEFT;
this.defaultOffset = new BMap.Size(10,5);
}
PointControl.prototype = new BMap.Control();
PointControl.prototype.initialize = function (map) {
var div = document.createElement('div');
div.setAttribute("class", "map_mousepoint");
map.getContainer().appendChild(div);
return div;
}
map.addControl(new PointControl());
map.addEventListener("zoomend", function (e) {
$(".map_lv").html(map.getZoom())
})
map.addEventListener("mousemove", function (e) {
$(".map_mousepoint").html("当前鼠标坐标位置:" + e.point.lng + "," + e.point.lat);
})
$.each(other_layer, function (index, name) {
var tileLayer = new BMap.TileLayer({ isTransparentPng: true });
tileLayer.getTilesUrl = function (tileCoord, zoom) {
return name + '/' + zoom + '/' + (tileCoord.x + "").replace(/-/gi, "M") + '/' + (tileCoord.y + "").replace(/-/gi, "M") + '.png';
}
map.addTileLayer(tileLayer);
})
})
</script>
</body>
</html>
没有合适的资源?快使用搜索试试~ 我知道了~
离线BD瓦片地图加载.zip
共1594个文件
png:1515个
js:60个
gif:10个
需积分: 5 0 下载量 104 浏览量
2024-04-01
13:35:59
上传
评论
收藏 14.59MB ZIP 举报
温馨提示
map。加载离线地图瓦片。包含三个文件/文件夹。分别是:bmap_offline、china_1和map.html。双击map.html即可在浏览器看到加载效果。示例里包含全国1-9级离线瓦片资源。
资源推荐
资源详情
资源评论
收起资源包目录
离线BD瓦片地图加载.zip (1594个子文件)
searchInfoWindow_min.css 4KB
trafficControl_min.css 4KB
drawingManager_min.css 2KB
ruler.cur 4KB
closedhand.cur 326B
openhand.cur 326B
bgs.gif 15KB
tools_menu.gif 2KB
mapctrls1d3.gif 899B
bar.gif 568B
popup_close.gif 203B
iw_close.gif 76B
iw_close1d3.gif 73B
node.gif 61B
nodeT.gif 61B
blank.gif 49B
map.html 4KB
bmap_offline_api_v3.0_min.js 388KB
jquery_1.9.js 372KB
points-sample-data.js 114KB
panorama_yjky0y.js 113KB
coordtrans_htb2yu.js 75KB
route_4ujiej.js 56KB
mapclick_wg01zg.js 44KB
distanceTool_min.js 38KB
searchInfoWindow_min.js 38KB
infowindow_1dmznp.js 36KB
style_x1xxh3.js 36KB
drawingManager_min.js 33KB
control_1qo0sj.js 33KB
heatmap_min.js 28KB
trafficControl_min.js 26KB
citylistcontrol_mkccq0.js 22KB
rectangleZoom_min.js 22KB
autocomplete_q5dpd4.js 20KB
poly_pn1k2q.js 19KB
textIconOverlay_min.js 19KB
luShu_min.js 19KB
tx_luShu_min.js 18KB
local_ilgegs.js 18KB
marker_nxclo0.js 16KB
navictrl_k0130b.js 15KB
oppc_x2e4mo.js 15KB
othersearch_ihxpzv.js 14KB
panoramaflash_q3kruw.js 12KB
markerClusterer_min.js 12KB
scommon_eg1i1g.js 12KB
map_kqxukj.js 11KB
map_dbwcej.js 11KB
geoUtils_min.js 11KB
tile_xix3pa.js 10KB
buslinesearch_1sd33t.js 8KB
opmb_g2bx2e.js 8KB
symbol_ly3oog.js 7KB
pointcollection_hdecpl.js 7KB
pservice_k0u4po.js 6KB
pcommon_t1uifm.js 6KB
canvablepath_nm5m24.js 6KB
menu_tmjb5q.js 6KB
curveLine.min.js 5KB
common_fejbwe.js 5KB
clayer_ob1udw.js 5KB
vmlcontext_aukkzm.js 4KB
geoctrl_ih5fm0.js 4KB
drawbycanvas_cfa12h.js 4KB
map_load.js 3KB
copyrightctrl_y43wpe.js 2KB
hotspot_4hzsec.js 2KB
groundoverlay_aq2bhb.js 2KB
custom_ctrl.js 2KB
areaRestriction_min.js 2KB
drawbysvg_q3ry3t.js 2KB
drawbyvml_0gnm4d.js 1KB
markeranimation_kvdfq4.js 1KB
convertor_i2oavo.js 543B
coordtransutils_ge13di.js 456B
draw_auobje.js 340B
3.png 61KB
3.png 57KB
4.png 48KB
6.png 48KB
8.png 46KB
18.png 45KB
7.png 45KB
6.png 44KB
6.png 44KB
36.png 44KB
5.png 42KB
19.png 41KB
6.png 41KB
13.png 40KB
5.png 39KB
14.png 39KB
27.png 39KB
5.png 38KB
2.png 37KB
7.png 37KB
9.png 37KB
36.png 36KB
15.png 36KB
共 1594 条
- 1
- 2
- 3
- 4
- 5
- 6
- 16
资源评论
ak2111
- 粉丝: 1907
- 资源: 67
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功