born05 / craft-imagehotspots

Image Hotspots fieldtype for Craft CMS
Other
5 stars 3 forks source link

FR: Zoom/pan on high resolution images to place markers #3

Closed wallacio closed 4 months ago

wallacio commented 3 years ago

I had a look at doing this myself as a PR but soon discovered I'd opened a can of worms. Finding the absolute X/Y coordinates on an image which is zoomed/panned is 'just' maths, but nothing I'm going to get to at the moment.

I think it'd be a great addition though. Again, a slightly uncommon but appropriate use-case is a spherically rendered image, which is made navigable on the front end using Three.js. In resolution terms, it's fairly big and placing markers on the flat version in CP is a bit hit-and-miss. Allowing zoom and pan to place markers would make this much more accurate.

roelvanhintum commented 3 years ago

Thanks @wallacio, this looks like a good feature to have!

roelvanhintum commented 4 months ago

Took a while, but is handled in 3.0.0-beta.2