【发布时间】:2017-12-02 08:23:43
【问题描述】:
我试图使情节成为车辆移动的路径。我在角度使用@agm/core angular-google-maps。我无法在文档中找到有助于旋转标记的任何内容。
iconUrl 属性没有提供足够的支持。我试过了:-
this.iconUrl = {
path: 'M 125,5 155,90 245,90 175,145 200,230 125,180 50,230 75,145 5,90 95,90 z',
scale: 6,
fillColor: "red",
fillOpacity: 0.8,
strokeWeight: 2,
rotation: 150 //this is how to rotate the pointer
};
上面的代码没有在地图上显示任何标记。
this.iconUrl = {
url: 'images/car.svg',
scale: 6,
rotation: 150
};
上面的代码显示了标记,但不缩放或旋转它。
我想旋转标记。有没有可能的方法来实现这一目标?有没有人使用@agm 实现了这一点。
【问题讨论】:
-
你能举个例子吗?
标签: angular angular-google-maps