OpenLayer

<html>
<head>
<meta charset="utf-8">
<title>GIS开发样例-V1.0</title>
<meta content="Copyright (c) Leetao" name="copyright">
<link rel="stylesheet" href="ol.css" type="text/css">
<script src="ol.js" type="text/javascript"></script>
<style type="text/css">
body {
margin: 0;
padding: 0;
border: 0;
background:#fff;
}
</style>
</head> <body>
<div id="map" class="map"></div>
<script>
var map = new ol.Map({
view: new ol.View({
center: [0, 0], //视图的初始中心
zoom: 1 //用于缩放视图的初始分辨率
}),
layers: [
new ol.layer.Tile({ //Tile预渲染层
//source: new ol.source.MapQuest({layer: 'osm'})
source: new ol.source.OSM()
})
],
target: 'map'
});
</script>
</body>
</html>
上一篇:MySQL篇,第一章:数据库知识1


下一篇:Leetcode 55. Jump Game