I have an array of point which I change to LineStrings – > it seems like curved line, and I want my Marker (Vector) go along this path with correct angle (rotate on curves).
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You have to calculate the angle between 2 points (preceding and following your marker on the linestring) : p1, p2:
Then make a rotation with “degrees” parameter: http://openlayers.org/dev/examples/styles-rotation.html