Commit 4d805ae0 authored by 张泽丹's avatar 张泽丹 💻

feat:本地化地图相关库

parent de20ebd9
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
...@@ -118,6 +118,7 @@ export default { ...@@ -118,6 +118,7 @@ export default {
center = [map.transform.center.lng, map.transform.center.lat] center = [map.transform.center.lng, map.transform.center.lat]
zoom = map.transform._zoom zoom = map.transform._zoom
}) })
break
} }
}, 100) }, 100)
}) })
......
...@@ -8,8 +8,8 @@ export const code = { ...@@ -8,8 +8,8 @@ export const code = {
<meta charset='utf-8' /> <meta charset='utf-8' />
<title></title> <title></title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' /> <meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='http://10.40.16.46/assets/mapbox-gl/mapbox-gl.js'></script> <script src='./assets/mapbox-gl/mapbox-gl.js'></script>
<link href='http://10.40.16.46/assets/mapbox-gl/mapbox-gl.css' rel='stylesheet' /> <link href='./assets/mapbox-gl/mapbox-gl.css' rel='stylesheet' />
<style> <style>
body { margin:0; padding:0; } body { margin:0; padding:0; }
#map { position:absolute; top:0; bottom:0; width:100%; } #map { position:absolute; top:0; bottom:0; width:100%; }
...@@ -56,8 +56,8 @@ export const code = { ...@@ -56,8 +56,8 @@ export const code = {
<title>Leaflet map</title> <title>Leaflet map</title>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="http://10.40.16.46/assets/leaflet/leaflet.css"/> <link rel="stylesheet" href="./assets/leaflet/leaflet.css"/>
<script src="http://10.40.16.46/assets/leaflet/leaflet.js"></script> <script src="./assets/leaflet/leaflet.js"></script>
</head> </head>
<body> <body>
<div id="mapid" style="width: 100%; height: 100vh;"></div> <div id="mapid" style="width: 100%; height: 100vh;"></div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment