mapbox / mapbox/leaflet-image

Marker Rotation Incorrect

Open
#104 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
380
Forks
140
PR merge metrics
No merged PRs in 30d

Description

![leaflet_image_marker_rotation](https://user-images.githubusercontent.com/7146010/29498708-0b0f87b0-8634-11e7-94a1-fab7fe6b259f.jpg)

Leaflet-image doesn't seem to take marker's rotation into account when rendering the image. On the left is how my marker suppose to look (a vehicle with facing) but the result is marker with zero rotation.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue provides a reproduction image but names no source file, test, or entry point. Start by reproducing a rotated Leaflet marker with leaflet-image and tracing the marker rendering path. Done means the generated image preserves the marker's rotation instead of rendering it at zero rotation.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.