【发布时间】:2018-02-16 00:07:33
【问题描述】:
如下图所示,我如何删除 openstreetmap 上的树层(可能是 tileLayer)。有没有办法把地图上的所有点和线也去掉?
var map = L.map('map', {
scrollWheelZoom: false
}).fitBounds(
[
[driverLocation.latitude, driverLocation.longitude],
[customerDeliveryLocation.latitude, customerDeliveryLocation.longitude]
],
{ padding: [80, 80] }
);
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
attribution: '© <a href="https://osm.org/copyright">OpenStreetMap</a> bidragsgivare'
}).addTo(map);
var LeafIcon = L.Icon.extend({
options: { iconSize: [34, 34] }
});
【问题讨论】:
标签: javascript leaflet openstreetmap