Tag Archives: Google Maps API

Achievement Unlocked! (map edition)


sparkgeo caught my attention with a blog post demonstrating Maptiks activities and conversions.

I’m curious to see how Maptiks will handle my new map, where nearly everything the user does is a conversion of some sort (or maybe none of them are conversions or maybe just viewing the map is the conversion, I’m not sure). I plan to add more achievements as time goes by, but for now, see how many achievements you can unlock!

Obvious inspiration: Achievement Unlocked! (one of my all-time favorite online games)

Nechako Aquifer & Wells


Curious where the Nechako Aquifer is located, now that a new report (article) has indicated that a hazardous chemical spill causing the loss of any of the city’s high capacity wells, “would be catastrophic for the city in terms of quality of life, sustainable economic growth, and environmental damage”?

Here‘s a map, with all the data for the aquifer and its ground water wells. City wells = star, other wells = circle.

Data sources:

Aquifers: https://catalogue.data.gov.bc.ca/dataset/ground-water-aquifers

Ground Water Wells: https://catalogue.data.gov.bc.ca/dataset/ground-water-wells-spatial-view-with-attribute-info

PG Open Data & WMS


Yesterday, I provided an example for how to load GeoJSON from the City of Prince George Open Data site to your Google Maps API web map. You can also load imagery through OGC WMS. Here is an example showing how to do so.

Note: I recycled most of the code from GISDoctor.com.

PG Open Data & GeoJSON


The City of Prince George recently unveiled the new City Open Data website, providing access to an impressive selection of spatial (and some non-spatial) datasets. Although these datasets have been available for some time on the old open data catalog, they are all now also available as GeoJSON, GeoService, and OGC WMS.

Here‘s an example of how you can load a Prince George GeoJSON layer through the Google Maps API.

Gmaps: Activity Logger

1I’ve been thinking about logging web map user interactions for a while, heavily inspired by sparkgeo‘s Maptiks product. If you haven’t tried Maptiks, you should. The Maptiks dashboard provides you with lots of interesting factoids like map loads, bounce rate, load times, and a heatmap of where users are looking, stratified by zoom level. I have no doubt that this is more than enough data for most people.

With that said, and no offense intended to sparkgeo who I imagine are too busy to address feature requests, the feature I feel that’s missing from Maptiks is that you can’t actually download user interaction data for further analysis. This map, which coincidentally uses Maptiks, is somewhat of a proof of concept towards that goal. The map on the left is what would be presented to the user. When the user navigates, that information (specifically, map center coordinates) is sent to a Firebase (a cloud-based database-type thing), and displayed on the map on the right. I’ve limited the Firebase to only store about 200 points, but that could be expanded to collect many more interactions, although I’m not sure at what point performance would be crippled. I assume a dedicated server would handle the storage of these interactions with little effort. Click and zoom activities could be similarly captured.

Have fun!

edit: I’ll also add that, as with most Firebase apps, the data updates in real time, so you may notice others using the map at the same time as you!

Find the Pink Iguanas!


* Spoiler alert: Links contained in this post will give you the answer to the vital question, “Where do pink iguanas live?” If you want to find out for yourself, click here to go to the quiz map and discover the answer at your own pace.

Pink iguanas (Wikipediamade the news today, so I decided to make a quick quiz map about them and their range (note: I couldn’t actually find a map showing the range, so I made it up based on the description in the news article).

Instructions: click on the map to guess where in the world pink iguanas live. When you choose wrong, the map zooms in one level closer to a random view with the correct area within the map window. This continues until you have no choice but to be right. Have fun!