Posts filed under “tutorials”

Matching Regions of GeoIP and Natural Earth

In this post I'll describe the process of bringing together the region shapes from the Natural Earth dataset with the regions provided in the GeoCityLite database. In the GeoCityLite db, the regions are referenced by a two-letter ID (FIPS10-4 for some countries, ISO3366-2 for others). Initially I thought that those IDs would be same as [...]

Moving on with the Piwik Maps

Here's a short documentation of my current progress in re-creating the Piwik maps in SVG/JS. Since we're going to create at least one pre-generated map source file per country, file size is going to be an important issue. That's why we thought about removing all polygons whose area is below a certain threshold, say 10 [...]

Finding a Good Data Source For a World Map

Last year I contributed a Flash-based world map to the open source Piwik Web Analytics project. At that time, all of the Piwik charts where rendered in Flash, but as with release 1.5, all Flash charts were replaced with JS/canvas charts. Now, my map plugin is the only Flash component in the whole project, which [...]

Tutorial: Rendering a World Map in ActionScript

This tutorial is the third part of a tutorial series about customized map projection in flash/actionscript. It demonstrates how to draw a world map using the as3-proj library and some helper classes. I assume that we read in a shapefile using the SHP library as shown in the previous tutorial.