Monday, August 25, 2014

Walk the Map


Here is another fun little Mapbox GL demo. The Walk Map allows you to navigate around a map using your cursor keys. That may not sound like a lot of fun but it is a rather neat demonstration of the Mapbox GL rotate event.

Using the up and down buttons you can move forwards and backwards on the map, while the left and right buttons allow you to rotate the map. The map rotation is fired by assigning a '+' or '-' value to the map heading every time the user clicks on the left or right mouse button.

This is the third Mapbox GL map I've seen since the introduction of Mapbox's new mapping library. You might also like to check out the Van Gogh Map (which uses images for map tile textures) and the birthplaces of Liverpool Football Club players map (which is a nice example of how to add markers and text labels).

No comments: