GWMap
This project started on Guild Wiki, and is basically about bringing map data from Guild Wars to the web.
So far, it consists of three parts:
- Map material for Pre-Searing, Tyria, Cantha, Elona and the Battle Isles, in different zoom levels, and split into 256x256 tiles, so that they can be used with the Google Maps API (extracted from the game by Smurf).
- A simple wrapper class around the Google Maps API that will take care of initializing a Google map object with a custom map type, a custom (flat) projection (also created by Smurf) and some other stuff. It also provides a bunch of basic Guild Wars related functionality, e.g. GWMap.indicatePosition(). More to come.
- A PHP script that will generate a static PNG image of any location on any of the supported maps. It is mainly intended as a fallback for the indicatePosition() functionality of the dynamic Google Map, when Javascript is not supported or not wanted.
see it in action
- demo1.html: Where to find Gwen in Pre-Searing.
- demo2.html: Handling mouse clicks and multiple markers.
- builder.html: Note the "Make static image" link in the bottom left.
Please note that Internet Explorer is currently not supported.
how to get
Everything I have written is released under the GPL - that's pretty much all the code, with exception of the FlatProjection.js file, which, as mentioned above, was created by Smurf. The actual map images are, of course, property of ArenaNet.
Here's a zip of the code. The map tiles are not included though. For now, I've put those up here, but please mind my bandwith bill (and pray the nice folks at ArenaNet are, well, actually nice).
possible future additions (aka the roadmap)
Some stuff that would be cool to have:
- A map of all points of interest (bosses, elite skills, collectors etc), including nice little popups with basic information etc. An extended GWMap class that would support this (more easily). An option to generate this map or parts of it statically as well.
- Routes, using Polylines.
- Overlays to optionally show towns/outposts and regions.