Glodenox / wme-image-overlays

A userscript that allows Waze editors to overlay a local image onto the map in the background
GNU General Public License v3.0
4 stars 1 forks source link

Allow adjusting the anchor point when editing an overlay image #11

Open Glodenox opened 5 years ago

Glodenox commented 5 years ago

Currently all modifications you make to the image overlay are calculated from the centre of the image. It would be practical if you could adjust this so you would lock one corner so all edits happen from that corner. I'll have to whip out the goniometric calculations again to also support rotated images, as the rotation is currently applied as the last step and not actually accounted for in the extent.

Maybe release in two phases: one without support for rotated images (but with a message saying so if rotation mod 90 != 0) and a second phase with the full support.