indiemapper is now available! Try it out here.

Code Library

Simple shapefile drawing
Simple shapefile drawing     Actionscript 3

These classes provide an easy way to load and render a shapefile in AS3 and can be a basis for more complex operations. In their basic implementation, a shapefile can be drawn to the screen with a single line of code.

>Source Code

Simple map panning and zooming
Simple map panning and zooming     Actionscript 3

This code is a very basic structure for creating a pannable, zoomable ("slippy") map from an image or other graphics in Flash. It demonstrates some of the necessary methods and how to use them interactively.

>Source Code

Continuous curves
Continuous curves     Actionscript 3

This class draws a single Bezier spline through a specified series of points, allowing for some control over the appearance of the curves. By drawing one or a series of cubic Bezier curves, it provides a useful addition to the built-in ActionSctipt quadratic Bezier curveTo method.

>Source Code

Dashed lines
Dashed lines     Actionscript 3

This class provides basic drawing methods for dashed lines in ActionScript. A style is set by specifying the lengths of dashes and gaps, and then lines are drawn using some of the same types of commands as the built-in drawing methods.

>Source Code

E00Parser
E00Parser     Actionscript 3

E00Parser loads the E00 topological GIS vector format into any ActionScript 3-based application. E00 files store topological information, making it easy to extract information on adjacency and shared border length, properties that open up new possibilities for experimentation in web mapping.

>Source Code

Noncontiguous cartograms
Noncontiguous cartograms     Actionscript 3

This code takes an array of objects containing geometry and attribute properties and draws a noncontiguous cartogram by scaling each feature according to its value in a chosen thematic attribute. Methods are included for loading geographic data from shapefile, making it quick and easy to create a cartogram.

>Source Code

Isolines
Isolines     Actionscript 3

Given a field of points with values, this package creates a triangulated irregular network (TIN), interpolates values, and draws an isoline map, all with just a few lines of code.

>Source Code

Coxcomb charts
Coxcomb charts     Actionscript 3

This ActionScript code allows easy drawing of coxcomb charts, the circular wedge charts popularized by Florence Nightingale. The code is very simple to implement and includes some methods for tweening and interaction.

>Source Code

Python shapefile loading
Python shapefile loading     Python

This is a simple and quick Python module to load shapefiles and populate a text list of their contents. As a stand-alone module, it provides a much easier alternative to existing larger open source geospatial libraries for those who only need to load and parse a shapefile.

>Source Code