Tuesday, July 26, 2016

Google Maps Highlights Areas of Interest

Google has begun to highlight 'areas of interest' on Google Maps. According to the Google Maps Blog "areas with the highest concentration of restaurants, bars and shops" will now be shaded orange on Google Maps.

This is a neat idea. It should mean that when you are in an unfamiliar area you can quickly identify areas where there should be a concentration of venues for eating, drinking and shopping. However this feature is only as good as the data that Google has. For example near me Google Maps shades two blocks of apartments in orange and a concentration of factory warehouses (which would only be of interest to drivers of delivery vans).

When you zoom in on the orange shaded areas on Google Maps the labels for individual areas appear on the map. This does mean that in most cases you should be able to tell from the map labels whether an area really does have bars, shops and restaurants. When I zoom in on the little orange shaded industrial area near my location the map reveals that the businesses are called things like 'Construction Support' and 'Roofing Suppliers' which does alert me to the fact that this might not be the best place to go for sushi.

Mapping the History of Ska

Making the Waves: The Evolution of Ska maps the history of ska music from its origins in 1950's Jamaica through its 70's revival in the UK and on to its 'third wave' in the USA.

This EntertainMaps created map provides brief introductions to a number of ska musical artists in Jamaica, the UK and the USA. If you select the markers on the map you can read these introductions and watch a YouTube video of the band or performer.

I guess one of the dangers in making such a map is that you will always be criticized for who you've left off the map. I don't know much about the 'third wave' of ska in the USA but I do know that the Jamaica and UK areas of the map are not exactly exhaustive. The UK section, for example, only includes three ska bands. I've never been a huge fan of ska but even I can think of a number of UK and Jamaica ska bands and artists that seem conspicuous by their absence from the map.

Fans of 70's UK music might also like EntertainMaps' London's Burning map. London's Burning plots the origins of some of London's finest punk bands. It also allows you to listen to a song by each of the mapped bands.

This map used to include Mapbox's glorious Wheatpaste map tiles. The Wheatpaste map style was inspired by the cut & paste, collage style of music flyers & posters, popular with punk and new wave bands. It worked beautifully on a map about Punk music. Unfortunately London's Burning now seems to use a black & white version of Stamen's Watercolor map style.

Monday, July 25, 2016

Mapping the UT Tower Shooting

Fifty years ago Charles Whitman killed 14 people and wounded 32 others at the University of Texas. The Texas Standard has interviewed nearly 100 survivors of the UT Tower Shooting, including professors, students and reporters. You can listen to the interviews and view archival newspaper reports & photos about the shooting on the Texas Standard's new Tower History website.

Out of the Blue: 50 Years After the UT Tower Shooting features a prominent interactive campus map of the University of Texas at Austin. Using the map you can listen to eye witness accounts of the UT Tower Shooting. As well as the audio files many of the markers include textual reports and archival photos.

The map itself is a really nicely designed custom map of the campus site. It has been made interactive using the Leaflet.js mapping platform.

Mapping Cape Town's Townships

There are around 437 informal settlements, or townships, in Cape Town. Places where many Cape Town citizens are forced to live, without occupation rights or security of tenure. These informal settlements mostly have a high density of occupation and very poor sanitation.

Code for Africa has mapped out Cape Town's informal settlements and created a dashboard which allows you to explore issues such as occupation density, the age of each township and the sanitary conditions.

When the map first loads you have the option to follow the stories of two township citizens. These stories provide a personal insight into the living conditions in Cape Town's informal settlements. They also act as a tutorial guide to the map's features. As you progress through these two stories you are shown how to use the map's functions to explore the available township data.

If you select a township on the Struggle for Dignity map you can view data on the selected settlement under the map. This includes the township's name, age, number of households, household density and the number of toilets per household and the type of toilets available.

If you use the buttons at the top of the map you can browse a choropleth view of the number of households, temporary toilets and household density in each of the city's informal settlements.

How to Create Map Backgrounds

Transparent maps with image and video backgrounds can create interesting geographical context on interactive maps. These background effects are achieved by placing a video or image behind a map and adjusting the opacity of the map - so that the video or image can be seen through the map.

Earlier this year Muxlabs released a Map on Video effect. This is just one effect in their Map Effects 100 collection of cool user interactions for Leaflet maps. In the demo of Map on Video a map of Las Vegas is overlaid on top of a video driving down Las Vegas Boulevard. An animated car marker shows the position of the car moving on the map as it drives down the street, while, in the background, you can actually watch as the video plays.

Codrops has now created a similar map effect which uses static images rather than a video. Simple Interactive Points Effect creates a static map with a number of map markers. As the user hovers over the marker the map becomes partly transparent and a photo of the marked location can be see through the map. When the user clicks on the marker the map becomes completely opaque and all you can see is the background image.

In effect a background page element replaces the usual marker information window or marker pop-up. When the map user clicks on a map marker instead of content being displayed in a marker pop-up it is displayed in place of the actual map.

The codrops effect uses a static map but this effect could easily be reproduced with an interactive map. Essentially all you need to do is create two page elements - one positioned exactly on top of the other. The page element for the map should be on top (use z-index on your page elements) and should have an opacity of '1'.

You can then adjust the opacity of the map by using event listeners on your map markers. When a user mouse-overs a marker you can adjust the opacity of the map element to '0.5' - so that the background image can be seen through the map. When the user clicks on the marker you can use the event listener to adjust the opacity of the map holding element to '0' - so that the map is now completely transparent and all the user sees is the image background.

Sunday, July 24, 2016

Maps of the Week

The Sandby borg ring fort in Öland, Sweden was the site of a violent massacre in the 5th century and is currently being investigated by Swedish archaeologists. The archaeological website of the Sandby fort now includes a wonderful 3d map featuring a reconstruction of the fort and fort houses.

The 3d map of the Sandy borg fort includes overlays which allow you to view the locations of some of the archaeological discoveries found within the fort complex. If you use the links along the bottom of the 3d map you can view where objects have been discovered in 'house 4' and 'house 40'.

If you've been caught up in the huge Pokemon Go craze then you need to check-out the PokeVision map. Most of the third-party maps created for Pokemon Go use crowd-sourcing to show the locations of Pokemon and Pokemon gyms. PokeVision does not use crowd-sourcing to find nearby locations of Pokemon. It actually shows you the location of all the Pokemon near you in real-time.

The map doesn't have the most impressive map design but it is a brilliant hack of the Pokemon Go app. The map shows the locations of Pokemon near your location in real-time. Each Pokemon shown on the map also includes a timer which displays how long the Pokemon will remain at that location.

This week This is Cleveland released a really beautiful custom designed interactive map of Cleveland.

If you zoom in on Downtown Cleveland on the Cleveland Map you should easily be able to find local points of interest. In particluar the most well known venues and landmarks in the neighborhood are picked out on the map with some gorgeous pictorial representations.

The custom map itself was designed by the Living Map Company. You can view more examples of their maps on the Living Map Company Projects page.  This is Cleveland say they will soon be adding lots more detail to  the map in other neighborhoods in Cleveland.

Street Art of Lisbon

Portuguese newspaper Expresso has created a Google Map showcasing the street art of Portugal. The map features the work of graffiti and street artists from all over the country.

The Mapa Interativo da Street Art Nacional is a simple but effective map with some neat custom touches. It uses the Google Maps API styled map feature to create a gray-scale background map. Clustered custom map markers are then placed on top of this base map. Spray can images are used for the individual locations and a numbered paint-splat image is used for the clustered markers.

As well as searching for street art by location on the map you can also search by artist name using the alphabetical index at the top of the map.

Saturday, July 23, 2016

Mapping the Tragically Hip

It has been a good week for Canadian music maps. On Tuesday we reported on the Canadian Geographic: On the Coast map of Canadian locations featured in popular song lyrics. Now there is a new map of locations mentioned in the songs of the band Tragically Hip.

Gord Downie the lead singer and lyricist of the band has been diagnosed with incurable brain cancer. To help commemorate his career and music CBS has created an interactive map of the locations mentioned in Downie's lyrics.

Looking for a Place to Happen uses the story map format to take you on a tour around Canada and the songs of the Tragically Hip. As you scroll down the page the map automatically pans to a location mentioned in one of Downie's songs. If you turn the 'autoplay' option on then the map also automatically plays the relevant song.

Each song is also accompanied with a brief textual description of the song and an excerpt from the lyrics.

Friday, July 22, 2016

How to Create a Pokemon Go Type Game

Niantic is an established leader in location based games and has already enjoyed popular success with their Ingress game. However the stratospheric success of Niantic's Pokemon Go means that the potential for location based augmented reality games is finally being more widely recognized. There is no doubt that the popularity of Pokemon Go means that there will soon be many imitators.

So - how do you create a game like Pokemon Go based on location data?

1. Build a Database of Points of Interest

There are obviously many elements to Niantic's Pokemon Go. At the heart of the game, however, is the placement of Pokemon in the real world. In essence Pokemon are mapped to particular locations in the real-world based on Niantic's database of points of interest.

At a basic level features in Pokemon Go are mapped like this:

Places of Interest: Pokemon
Public Spaces: Gyms
Water - Water Pokemon

Niantic's database of points of interest comes from users of Niantic's Ingress game. Niantic Labs began as an internal start-up at Google, Therefore it is safe to assume that the original data behind Ingress and Niantic's earlier mobile guide 'Fieldtrip' (showing nearby places of interest) came from Google Maps.

Players of Niantic's Ingress were encouraged to submit points of interest to the game. This has enabled Niantic to extend their database of interesting places - particularly in areas which lacked data in the original game.

At the heart of Ingress' original database were locations which had some 'cultural' interest. This is important to the success of Niantic's location based games. It means that when players visit real-world locations while playing Ingress or Pokemon Go there is usually something interesting for players to see.

So how do you create a database of POI's?

If you don't want to start from scratch you could always use something like Google Places or Mapzen's Who's on First gazetteer.

Alternatively you could use OpenStreetMap data. Using the Overpass API you can select and download OSM map data. For example (copying Niantic's preference for places of cultural interest) you could use the Overpass API to download the locations of all buildings in a city tagged 'museum' and 'gallery' to build a database of museums and art galleries.

2. Create a Base Map

Pokemon Go appears to be using Google Maps for its base map of streets and location data. If you also want to build upon the success of Google Maps you could use the Google Maps API, the Google Maps API for Android and the Google Maps SDK for iOS.

The disadvantage of using Google Maps is that you only have limited options for creating your own map style. Mapbox and Mapzen have both written recent posts about how you can create a base map similar to that used in Pokemon Go. If you want to create your own map style based on OpenStreetMap data then you could always use Mapbox Studio.

3. Find Your Users Location

Once you have a database of interesting locations and a base map on which to place them you have the basic requirements for your game. However you will need to check your user's location before showing them their nearby points of interest.

To do this you could use a geolocation service, such as the Google Geolocation API or the Geolocation API.

Alternatively you could use geo-fencing to determine when a user enters a predefined geographic area. You can use geo-fences to define an area around a location and trigger actions on your map based on when users enter your defined area.

4. Create an Interesting Game

Now comes the hard part. Once you have a database of interesting places, a map and a way of checking your users' locations you now need something fun for them to do. This is where you need to get creative and come up with your own ideas.

The potential is limitless but you might want to consider location based ideas such as,

finding, dropping, training objects /characters
buying, selling or capturing territory
finding or hiding virtual objects (a kind of virtual geocaching or virtual treasure hunt)

Mapping Water Risk Around the World

The World Wildlife Fund's Water Risk Filter assesses the physical, regulatory and reputational risk to water across the globe. It allows users to view key indicators of water risk in countries and different industries around the world.

The Water Risk Filter uses a number of key indicators to assess the levels of water risk. These include indicators such as water scarcity, pollution, ecosystem threats, regulatory risk and supply chain water risk. If you select a country on the map you can view a country profile outlining the physical, governmental and geopolitical context of local water risk.

The map also allows you to select different layers to view on the map. These include different indicators of water risk, such as access to drinking water and water pollution. You can also select layers which show the water risk for different types of industry.

The World Resources Institute has also created an interactive map which visualizes where and how water risks are emerging across the globe. Aqueduct allows you to explore 12 key indicators of water risk in countries around the world.

The 12 key indicators can be accessed from the map side panel. You can select any of the indicators to view a choropleth map layer showing the risks around the world for each indicator. The indicators include risks such as access to water, drought severity and groundwater stress.

You can learn more about the water risks facing a particluar area by clicking on the interactive map. Selecting a location on the map in this way will open an information window containing a breakdown of the water risks faced by your chosen location. This information includes a rating of the overall water risk and the projected risks for the area selected.