JakovTomasic / RitehMaps

Indoor navigation project for the Faculty of Engineering, Rijeka
Apache License 2.0
3 stars 1 forks source link

Map rotation #65

Closed JakovTomasic closed 9 months ago

JakovTomasic commented 9 months ago

We need to be able to rotate the map anyway we need. Add rotateAngle: number (or rotateDegrees or similar) to Map component prop and make it work. Map rotation should work for any number representing angle in degrees (0 to 360).

The point that is in the middle of the frame should remain in the middle during map rotation. I.e. map should rotate around current middle (depends on how the map is cropped).