1

I wanted to know if it is possible to make a turn for a point with a defined image (arrow example) depending on the attribute of a field that reflects the angle in degrees. I want to represent the direction of the wind for these three meteorological stations. In the three I have the addresses (220,230,240 ...) but I do not know if there is any way to rotate the layer in cartocss.

1

You need to use marker-transform CartoCSS property in combination with rotate function, and also setting the marker-type as arrow:

marker-type: arrow; marker-transform: rotate(([wdir]-90),0,0);

image

You can check a beautiful example done by a colleague here.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.