本文主要是介绍在leaftlet中高德地图如何加载wgs84地理信息,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
<title>高德-OSM-天地图瓦片对比</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.0.1/dist/leaflet.css" />
<script src="https://unpkg.com/leaflet@1.0.1/dist/leaflet.js"></script>
<script src="https://cdn.bootcss.com/proj4js/2.4.3/proj4.js"></script>
<script src="https://cdn.bootcss.com/proj4leaflet/1.0.1/proj4leaflet.min.js"></script>
<style>
body {
padding: 0;
margin: 0;
}
html,
body,
#map {
height: 100%;
width: 100%;
}
</style>
<div id="map"></div>
这篇关于在leaftlet中高德地图如何加载wgs84地理信息的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!