Kenabil's Map Viewer

Tools for helping with server hosting, or Wurm Unlimited in general.
User avatar
Kenabil
Soldier
Soldier
Posts: 87
Joined: Sun Jul 26, 2020 10:32 am
Location: Awakening
Contact:

Kenabil's Map Viewer

Post 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 6921 times

Kilem
Small cart builder
Small cart builder
Posts: 3
Joined: Sat Aug 29, 2020 2:22 pm

Re: Kenabil's Map Viewer

Post by Kilem »

Any Eta for the new properties file to add the towers?

User avatar
Kenabil
Soldier
Soldier
Posts: 87
Joined: Sun Jul 26, 2020 10:32 am
Location: Awakening
Contact:

Re: Kenabil's Map Viewer

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

User avatar
Kenabil
Soldier
Soldier
Posts: 87
Joined: Sun Jul 26, 2020 10:32 am
Location: Awakening
Contact:

Re: Kenabil's Map Viewer

Post by Kenabil »

New version of the map viewer, with a checkbox for deed perimeters.

User avatar
Kenabil
Soldier
Soldier
Posts: 87
Joined: Sun Jul 26, 2020 10:32 am
Location: Awakening
Contact:

Re: Kenabil's Map Viewer

Post by Kenabil »

New version of the map viewer, with checkboxes for showing kingdom influence and signs.

User avatar
Kenabil
Soldier
Soldier
Posts: 87
Joined: Sun Jul 26, 2020 10:32 am
Location: Awakening
Contact:

Re: Kenabil's Map Viewer

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

User avatar
Kenabil
Soldier
Soldier
Posts: 87
Joined: Sun Jul 26, 2020 10:32 am
Location: Awakening
Contact:

Re: Kenabil's Map Viewer

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

User avatar
Kenabil
Soldier
Soldier
Posts: 87
Joined: Sun Jul 26, 2020 10:32 am
Location: Awakening
Contact:

Re: Kenabil's Map Viewer

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

User avatar
Kenabil
Soldier
Soldier
Posts: 87
Joined: Sun Jul 26, 2020 10:32 am
Location: Awakening
Contact:

Kenabil's Map Viewer V1.2.1

Post 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

Kilem
Small cart builder
Small cart builder
Posts: 3
Joined: Sat Aug 29, 2020 2:22 pm

Re: Kenabil's Map Viewer

Post 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

Post Reply