提交 d92c2a48 编写于 作者: S sw_pc

【leaflet】导航页面标题介绍; 默认显示天地图

上级 9c15d319
{
"liveServer.settings.port": 5501
}
\ No newline at end of file
...@@ -23,7 +23,7 @@ const tdtLabelLayer = new TileLayer( ...@@ -23,7 +23,7 @@ const tdtLabelLayer = new TileLayer(
const tdtLayer = new LayerGroup([tdtVectorLayer, tdtLabelLayer]); const tdtLayer = new LayerGroup([tdtVectorLayer, tdtLabelLayer]);
amapLayer.addTo(map); tdtLayer.addTo(map);
map.setView([39.909186, 116.397411], 10); map.setView([39.909186, 116.397411], 10);
......
...@@ -23,7 +23,7 @@ const tdtLabelLayer = new TileLayer( ...@@ -23,7 +23,7 @@ const tdtLabelLayer = new TileLayer(
const tdtLayer = new LayerGroup([tdtVectorLayer, tdtLabelLayer]); const tdtLayer = new LayerGroup([tdtVectorLayer, tdtLabelLayer]);
amapLayer.addTo(map); tdtLayer.addTo(map);
map.setView([39.909186, 116.397411], 10); map.setView([39.909186, 116.397411], 10);
......
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="../lib/leaflet/leaflet.css"></link> <link rel="stylesheet" href="../lib/leaflet/leaflet.css"></link>
<link rel="stylesheet" href="./style.css"></link> <link rel="stylesheet" href="./style.css"></link>
<!-- <script src="https://unpkg.com/inline-module/index.js"></script> --> <script src="../lib/inline-module/index.js"></script>
<script src="../lib/inline-module/index.js"></script> <title>leaflet学习</title>
<!-- <meta http-equiv="Content-Security-Policy" content="default-src 'self' 'unsafe-inline' 'unsafe-eval' * blob: data: file:"> --> </head>
<title>Document</title> <body>
</head> <div id="map"></div>
<body>
<div id="map"></div>
<!-- <script src="./index.js"></script> --> <script type="module">
<script type="module"> import "./index.js"
import "./index.js" </script>
</script> </body>
</body>
</html> </html>
\ No newline at end of file
...@@ -23,7 +23,7 @@ const tdtLabelLayer = new TileLayer( ...@@ -23,7 +23,7 @@ const tdtLabelLayer = new TileLayer(
const tdtLayer = new LayerGroup([tdtVectorLayer, tdtLabelLayer]); const tdtLayer = new LayerGroup([tdtVectorLayer, tdtLabelLayer]);
amapLayer.addTo(map); tdtLayer.addTo(map);
map.setView([39.909186, 116.397411], 10); map.setView([39.909186, 116.397411], 10);
......
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title> <title>Document</title>
</head> </head>
<body> <body>
<h1>leaflet</h1> <h1>leaflet</h1>
<li><a href="d1/index.html">d1</a></li> <li><a href="d1/index.html">d1. 初见:Map、TileLayer</a></li>
<li><a href="d2/index.html">d2</a></li> <li><a href="d2/index.html">d2. 多地图切换:Control.Layers</a></li>
<li><a href="d3/index.html">d3</a></li> <li><a href="d3/index.html">d3. 标记:Marker、Icon</a></li>
<li><a href="d4/index.html">d4</a></li> <li><a href="d4/index.html">d4. GeoJson数据导入:GeoJSON</a></li>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",
"dev": "live-server /root/MyOpen/leaflet" "dev": "live-server ./leaflet"
}, },
"keywords": [ "keywords": [
"study" "study"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册