Kregap / craftopia-map

Craftopia map with various points of interests marked.
https://kregap.github.io/craftopia-map/
MIT License
4 stars 1 forks source link

Allow to add custom HTML to be displayed in popup on click #26

Closed Kregap closed 1 year ago

Kregap commented 1 year ago

From community:

my idea was to make an interactive map wiki, when you click on an item, it gives you details about this item, and what it is used for; a toggleable option below "Copy on click" called "Show descriptions" that, on click, if this option is enabled, will show a bubble with a description "Show description on click"

Kregap commented 1 year ago

any chance that we can add a context window when we select an object on the map. this context window would pop up with an image or text or video. for example if we single clicked on a soul orb it could pop up a context window with maybe a custom image attached that might show a screenshot or its location, or if we single clicked on an alter a context window could pop out with some text that could tell us that this trial has 2 waves or mobs and what qty and type of mobs spawn in each wave.

I second a context menu. Which'll be very useful when adding the treasure chests with fixed loot.

Kregap commented 1 year ago

There was a concern voiced about sercurity if HTML was allowed, consider allowing only plain text or markdown.

Kregap commented 1 year ago

Added in scope of 24ec2cb998914c6f10a0fab217fc84677aaaace1. One can add description on marker type or specific marker, they will be both combined in popup. Plain text, markdown, HTML with Bootstrap classes can be used.

Image Image Image