[英]How do I rotate a map marker in angular-leaflet-directive?
My map markers are adorable little aeroplanes and I would like to be able to orientate them? 我的地图标记是可爱的小飞机,我想对它们进行定位? If there a way to do this programmatically without creating multiple images? 是否有一种方法可以以编程方式执行此操作而不创建多个图像?
You can use CSS3: 您可以使用CSS3:
transform: rotate(<angle>deg);
or 要么
<element>.style.transform = "rotate(<angle>deg)";
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.