提交 a82fb128 编写于 作者: K kinghzking

Thu Nov 9 15:08:00 CST 2023 inscode

上级 7a093d7e
run = "npm i && npm run dev"
language = "node"
[deployment]
build = "npm i && npm run build"
......@@ -8,3 +9,6 @@ run = "npm run preview"
PATH = "/root/${PROJECT_DIR}/.config/npm/node_global/bin:/root/${PROJECT_DIR}/node_modules/.bin:${PATH}"
XDG_CONFIG_HOME = "/root/.config"
npm_config_prefix = "/root/${PROJECT_DIR}/.config/npm/node_global"
[debugger]
program = "main.js"
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://unpkg.com/leaflet/dist/leaflet.js"></script>
<title>Document</title>
</head>
<body>
<div id="map"></div>
<script>
var map = L.map('map').setView([51.505, -0.12], 13);
L.tileLayer('https://api.mapbox.com/styles/v1/mapbox/streets-v10/tiles/{z}/{x}/{y}?access_token=pk.eyJ1IjoiZ3Jhc2giLCJhIjoiY2ludGVncmF0aW9uaW50biJ9.307npnHiWXDn9B37olXTLnA', {
attribution: 'Map data &copy; <a href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors, <a href="https://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Imagery © <a href="https://www.mapbox.com/">Mapbox</a>',
maxZoom: 18,
minZoom: 10
}).addTo(map);
var polyline = L.polyline([[51.505, -0.12], [51.515, -0.125]], {
color: 'red',
weight: 3
}).addTo(map);
var animation = new L.Animate(polyline, {
positions: [[51.505, -0.12], [51.515, -0.125]],
opacity: 0.5,
ease: 'linear'
}).run();
</script>
</body>
</html>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册