Rotate Leaflet markers tooltip text
问题 I have some JSON with data that should be shown on the map. var shapesCoordinates = '[{"shapeId": 1,"coordinates": [-1500,500],"text": "bla bla", "rotation": 20},{"shapeId": 2,"coordinates": [-1800,800],"text": "idemooooo", "rotation": 60}]'; var shapess = JSON.parse(shapesCoordinates); var markers = []; for (var i = 0; i < shapess.length; i++) { var marker = L.marker(shapess[i]['coordinates'], { opacity: 0.01 }).bindTooltip(shapess[i]['text'], { permanent: true, className: "shapesText",