【问题标题】:Leaflet in combination with Leaflet.RotatedMarkerLeaflet 与 Leaflet.RotatedMarker 结合使用
【发布时间】:2018-03-19 10:35:23
【问题描述】:

我将 Leaflet 与 Leaflet.RotatedMarker 结合使用来添加带有旋转度数的标记。

问题:

如果我想像这样添加自己的图标:

var marker =L.marker([x, y,z], {
icon: car_n,rotationAngle: z }).addTo(map);

Result

我怎样才能只添加我的图标?谢谢各位

【问题讨论】:

    标签: rotation leaflet leaflet.draw


    【解决方案1】:

    好的,它工作正常...调用函数时出错。thx :)

    【讨论】:

      猜你喜欢
      • 2023-03-30
      • 2015-01-01
      • 1970-01-01
      • 2016-12-16
      • 2013-01-10
      • 2018-09-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多