Star Army's starmap is fed from live data pulled from the wiki itself. The plugin that drives it was created as a collaborative effort between various SARP members! Updates and improvements are being made occasionally.
You can see the Starmap in action at the Kikyo Sector.
The Starmap has two “modes” - collapsed and expanded.
While collapsed, you can zoom in and out using either your mousewheel or the +/- buttons found at the top-left of the map. You can also pan the map by clicking and dragging it. As you zoom in and out, you'll see that some locations only appear at certain zoom levels. This helps us keep the map from being overly cluttered when you're zoomed out, while letting you find all kinds of points of interest while zoomed in.
If you click on a marker, you may find that it has additional information, including a link to the location's article that the marker represents.
While your mouse is hovering over the map, you'll see additional controls beyond the basic zoom in/out buttons. The first is the pan button, which performs the same behavior as clicking and dragging normally. The other is the expand button, which will enlarge the map and give access to more commands.
You'll also see the layer controls at the bottom right. These layers are automatically toggled as you zoom in and out, but you can manually toggle them, as well. They will reset when your zoom level changes once more.
All of the controls from the Collapsed mode are still present while expanded, but you now also have access to a variety of map editing tools. None of the changes made to the map are saved, but they can still be useful for marking points of interest or finding coordinates.
The upside-down teardrop is the Marker button. Clicking this will allow you to drop markers wherever you click on the map. They will be simple blue teardrops. When you click on one, it will show you the marker's coordinates and some basic instructions on what to do with them.
Most of the other buttons are self-explanatory, so give them a try.
Some of the buttons don't behave as they should - we're working on a fix.
To exit Expanded mode, click outside the map or on the Collapse (in the place of Expand) button.
Maps are defined on their own wiki article, which will specify the image the map will use and some other specific details. Once the map has been created, all articles on the wiki can make use of it. For the Kikyo Sector map, the code looks like this:
The syntax tells the Wiki we're making a map, where to look for the map's information, what coordinates to center on, and what zoom level to start at. If you wanted to center the map on another location, such as Ayano, we would simply update the coordinates, as follows:
While this guide refers specifically to starmaps, our map plugin can make a map out of any image. You can make ship maps, city maps, and so on.
First, you'll need to make a page on the wiki in an appropriate namespace. Not all places on the wiki are setup to work with maps. For most map purposes, this will be the Places (places:) namespace.
Once you have a page, you'll see a variety of textboxes at the bottom of the page while you're editing it. These are data fields associated with the page that are stored and managed by one of the other plugins used on the Wiki, Struct. You don't need to know what Struct is or how to use it beyond “information goes in the boxes”.
Our map plugin uses that Struct data to define what map a location belongs to, where the location should be placed, and what marker image to use for the location. You can also add in some additional text. A link to the article will be added to the marker automatically.
Once you've filled in the fields for your location, save the page. New Markers will display on the Map page the next time its cache is reset, so you may not see your location on the Map immediately.
Not all articles in a given namespace will show up on the map. They have to have the majority of the required fields in Struct filled out or the plugin will skip them.
Whisper created this article on 2023/01/20 06:57.