Page 1 of 2

Kenabil's Map Viewer

Posted: Sat Aug 29, 2020 4:55 pm
by Kenabil
For a complete reference, check the Wiki page.

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:
https://awakening.wurm-unlimited.net/map/Awakening

map-viewer-example.png
map-viewer-example.png (71.65 KiB) Viewed 7704 times

Re: Kenabil's Map Viewer

Posted: Mon Sep 14, 2020 9:05 pm
by Kilem
Any Eta for the new properties file to add the towers?

Re: Kenabil's Map Viewer

Posted: Tue Sep 15, 2020 10:26 am
by Kenabil
I've released V1.1.1 wich adds a function to have custom guard towers show on the map. Set the property guard-tower-ids to a comma-separated list of item template ids.

Re: Kenabil's Map Viewer

Posted: Mon Jan 04, 2021 9:32 pm
by Kenabil
New version of the map viewer, with a checkbox for deed perimeters.

Re: Kenabil's Map Viewer

Posted: Thu Apr 22, 2021 5:53 pm
by Kenabil
New version of the map viewer, with checkboxes for showing kingdom influence and signs.

Re: Kenabil's Map Viewer

Posted: Wed Jun 23, 2021 11:22 pm
by Kenabil
New version: V1.1.4 State of map view in URL + responsive UI

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.

Re: Kenabil's Map Viewer

Posted: Sat Jun 26, 2021 12:41 am
by Kenabil
New version: V1.1.5 Added params for URL + improved UI

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.

Re: Kenabil's Map Viewer

Posted: Fri Aug 06, 2021 10:05 pm
by Kenabil
New Version: V1.2.0 Addons interface + LSA addon by Axeblade

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).

Kenabil's Map Viewer V1.2.1

Posted: Tue Aug 10, 2021 12:25 am
by Kenabil
V1.2.1 LSA addon update + addons: Highways and Kingdoms + Badges

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

Re: Kenabil's Map Viewer

Posted: Tue Aug 10, 2021 11:03 pm
by Kilem
Latest version works great, www.scallywagsgaming.com/Map to see.

Big thanx for your hard work the Folks on Scallwags server love it.
:D :D :D :D :D