Istador / pine-interactive-map

Interactive Map for the video game Pine. Showing all collectibles, resources and more that can be found in the game.
https://pine.blackpinguin.de/
Mozilla Public License 2.0
22 stars 5 forks source link

URI parameters #18

Closed Istador closed 4 years ago

Istador commented 5 years ago

It should be possible to link to specific markers by using their ID, e.g. with #id=123. The popup of the marker should open and the marker should be centered and zoomed in on. The popup should offer a permanent link button as well as changing the site's history when opening and closing.

Highlighting a specific coordinate pair (drawing a circle around it, center it and zoom in) should also be possible, e.g. #x=200&z=-345&zoom=4.

Linking to a specific layer selection might also be useful, e.g. #layers=entrance.vault,unique.idea (but should not be saved unless the user changes the selection manually).

The site might need to be able to react to manual changes to the hash portion of the URI by the user, by opening up popups, (de-)highlight coordinates and pan/zoom/center around.


This might be very useful for other websites (e.g. the Pine Wiki) or users that want to point to specific POIs or coordinates within the game.