Please let me know what you think, or if you have any difficulties using it.
This is the map viewer used on the Awakening Server web page:
The state of the view is stored in the URL, so copying the URL from the browser will retain zooming and selected layers. This way you can place a pointer or select a deed, zoom in and then easily share the view with friends.
The map view has been improved for viewing and using in mobile devices. The UI has been resized and is hidden by default with a "hamburger" button to slide the sidebar into view.
Fix: Kingdom influence has been corrected.
This minor update improves the UI by adding a menu button for all modes and a scrolling sidebar for smaller displays. Many fixes and updates to the CSS stylesheet.
The URL now stores both pointer and the center of the view. No pointer has to be set to share the exact view.
Addons can be placed in a dedicated directory, js and css files will be added to the index-file and loaded in the mapviewer. Use the new properties use-addons, addons-directory and addons-url to configure.
Axeblade was kind to commit his addon "Locate Soul Assistant" (LSA), which can draw on the map the area where you can expect to find a location, given directions in Wurm.
New properties for enabling/disabling overwriting of files: overwrite-existing-resources for resource files such as images and scripts; overwrite-existing-index for the index file, in case it's been modified and should not be overwritten; overwrite-existing-config the config.js file (this contains all map data, including deeds etc.).
Fix: Only list kingdoms with at least one existing deed (Note: kingdoms may possibly have only hidden deeds, and will then be invisible).
Addon Locate Soul Assistant has been modified to replace the previous UI and instead you place a pointer on the map, and copy-paste the search message into the map viewer's search field. The message is recognized by the addon and will add a node. Each node draw's a search area on the map. In the layers list you can uncheck "Locate Soul Assistant" to clear nodes.
Two more addons have been extracted from the main map viewer's code: Kingdoms and Highways. For two reasons, first to make it easy for hosts to simply not install these addons to not have these map features (though you still have the show-highways property which is used to write the highway nodes to the config.js script). Secondly, to showcase how addons can be written, as practical examples.
A badge feature has been added, which is to visually show which addons are installed and when clicking on a badge allows addons a way to present itself and to give usage instructions. The badges are listed on the bottom right side of the map.
Fix: A bug in previous version caused a null pointer error, which was fixed.
Fix: Prevent mouse wheel from zooming when over the sidebar.
Download here: https://github.com/awakening-wurm/MapVi ... -1.2.1.zip