我正在使用leaflet进行室内测绘。我有室内平面图,我把它缝到了传单地图上。
如何将路径添加到室内测绘以用于导航?
发布于 2018-02-01 19:21:09
您应该能够使用Leaflet的Polyline类在地图上绘制路径。这里有一个来自the documentation的例子
// create a red polyline from an array of LatLng points
var latlngs = [
[45.51, -122.68],
[37.77, -122.43],
[34.04, -118.2]
];
var polyline = L.polyline(latlngs, {color: 'red'}).addTo(map);
// zoom the map to the polyline
map.fitBounds(polyline.getBounds());https://stackoverflow.com/questions/48559682
复制相似问题