2006Scape Wiki:Map: Difference between revisions
Jump to navigation
Jump to search
no edit summary
scape_>Ralpha |
scape_>Ralpha No edit summary |
||
Line 5: | Line 5: | ||
* [[RuneScape:Discord|Discord]]: #cartographers | * [[RuneScape:Discord|Discord]]: #cartographers | ||
* | * OSRS production version: https://maps.runescape.wiki/osrs/ | ||
* RS3 production version: https://maps.runescape.wiki/rs (not online) | |||
* OSRS example (for development only): https://osrsmap.ralphbisschops.com | * OSRS example (for development only): https://osrsmap.ralphbisschops.com | ||
* RS3 example (not up-to-date): https://rs-wiki.gitlab.io/maps/#2/3225.0/3219.0 | |||
Code repo's: | |||
* Map tile generator: https://gitlab.com/weirdgloop/map-tile-generator ''(not published at the moment)'' | |||
* Stand alone map: https://gitlab.com/weirdgloop/doogle-maps | |||
* Kartographer extension for wiki: https://gitlab.com/weirdgloop/extensions/kartographer | |||
== Map Creation == | == Map Creation == | ||
=== Old School RuneScape === | === Old School RuneScape === | ||
The map for OSRS are created using modified version of the [https://github.com/runelite/runelite RuneLite] [https://github.com/runelite/runelite/blob/master/cache/src/main/java/net/runelite/cache/MapImageDumper.java MapImageDumper] script. It uses the game cache as the source for the maps. This provides easily updatable maps. | The map for OSRS are created using modified version of the [https://github.com/runelite/runelite RuneLite] [https://github.com/runelite/runelite/blob/master/cache/src/main/java/net/runelite/cache/MapImageDumper.java MapImageDumper] script. It uses the game cache as the source for the maps. This provides easily updatable maps. | ||
The code for this can be found at: ''( | The code for this can be found at: https://gitlab.com/weirdgloop/map-tile-generator ''(not published at the moment)'' | ||
This script creates map regions at different resolution levels: | This script creates map regions at different resolution levels: | ||
Line 68: | Line 75: | ||
== Map Implementation == | == Map Implementation == | ||
The map implementation for OSRS and RS3 use the same codebase. This codebase can be found here: | The map implementation for OSRS and RS3 use the same codebase. This codebase can be found here: https://gitlab.com/weirdgloop/doogle-maps | ||
For the wiki we use a modified version of the [https://www.mediawiki.org/wiki/Extension:Kartographer Kartographer extension]. This codebase can be found here: https://gitlab.com/weirdgloop/extensions/kartographer | |||
The map implementation uses [https://leafletjs.com/ Leaflet] for the map implementation and [https://gulpjs.com/ Gulp] for project compelation. | The map implementation uses [https://leafletjs.com/ Leaflet] for the map implementation and [https://gulpjs.com/ Gulp] for project compelation. | ||
Line 297: | Line 305: | ||
{ | { | ||
"basePathURL": "https://chisel.weirdgloop.org/", // path prefix for pathfinding. Path suffix example: "/pathfinder/path.json?..." | "basePathURL": "https://chisel.weirdgloop.org/", // path prefix for pathfinding. Path suffix example: "/pathfinder/path.json?..." | ||
"baseTileURL": "https://maps.runescape.wiki/osrs/", // path prefix (appended by tileURLFormat) for downloading base maps | |||
"tileURLFormat": " | "tileURLFormat": "tiles/{mapID}_{cacheVersion}/{z}/{p}_{x}_{-y}.png", // format for how the tiles are stored | ||
"attribution": "<a href=\"https://weirdgloop.org/licensing/\" target=\"_blank\">License</a>", // attribution field on map | "attribution": "<a href=\"https://weirdgloop.org/licensing/\" target=\"_blank\">License</a>", // attribution field on map | ||
"dataloaderFile": "https://maps.runescape.wiki/osrs/data/dataloader.json", // path to the main dataloader file | |||
"wikiImageURL": "https://oldschool.runescape.wiki/images/" // path prefix for image used on overlayMaps. Path suffix example: "/4/41/Old_School_RuneScape_logo.png" | "wikiImageURL": "https://oldschool.runescape.wiki/images/" // path prefix for image used on overlayMaps. Path suffix example: "/4/41/Old_School_RuneScape_logo.png" | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> |