hi-ucs/front/public/leaflet/libs/iclient8c/resource/Android/html/mbtiles.html

33 lines
1002 B
HTML
Raw Normal View History

2022-06-14 09:32:49 +08:00
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8" />
<title>SuperMap iClient for JavaScript</title>
<style>
#map{
border:0px solid;
}
</style>
<script type="text/javascript" src="js/cordova-2.7.0.js"></script>
<script src="libs/SuperMap.Include.js"></script>
<script type="text/javascript">
var map, layer;
function init() {
SuperMap.Util.setApp(true);
map = new SuperMap.Map("map",{controls: [
new SuperMap.Control.ScaleLine(),
new SuperMap.Control.Zoom(),
new SuperMap.Control.Navigation({dragPanOptions: {enableKinetic: true}})
]
});
layer = new SuperMap.Layer.TiledDynamicRESTLayer("China", "", {}, {"storageType":"db"});
map.addLayer(layer);
map.setCenter(new SuperMap.LonLat(0, 0), 1);
}
document.addEventListener("deviceready",init,false);
</script>
</head>
<body>
<div id="map" style="position:absolute;left:0px;right:0px;width:100%;height:100%;"></div>
</body>
</html>