In some cases it would be helpful to be able to rotate the map away from North-Up.
To support this we'd need to change the following:
add rotation to the map projection object
code that uses a projection to fetch data should be rotation aware.
mostly that means updating d3.geoTile
https://github.com/openstreetmap/iD/blob/master/modules/lib/d3.geo.tile.js
and any place it is used:
add support for changing the rotation in several places in the map code:
support a rotation in the map hash
zoom/lat/lon and zoom/lat/lon/angle ?all the drawing code needs to be aware of being rotated
midpoints.js)vertices.js)labels.js, gpx.js)points.js, mapillary_images.js, mapillary_signs.js, openstreetcam_images.js)add some kind of rotation compass control:
context.map().on('move.compass', debouncedUpdate)other stuff:
@bhousel wrote:
In some cases it would be helpful to be able to rotate the map away from North-Up.
Could you please give examples?
Could you please give examples?
The two most common examples people have asked me about are:
Personally, I would find map rotation to be very handy for the two reasons above (and not just because I like to trace east-facing corn mazes).
Some considerations regarding user interaction:
GestureEvent for Safari and MSGestureEvent for Internet Explorer and Edge.hi , this is a great feat for map rotation, is there any timeline for the support of rotate func in iD? i want to make contributions for this feat.
There isn't a timeline - someone wanted this so I put my thoughts on a ticket about what might be needed..
It would be great to have your help with this! 馃憤
It might make it easier to break the work into several PRs.
Most helpful comment
The two most common examples people have asked me about are: