Hexagonal canton maps

Hexagonal maps are an abstract way to represent territories.

You draw a hexagon by rotating the user space by 60 degrees each time. Let's create a hexagon operator that works like the arc operator

Javascript Editor

Javascript Editor

To create a map, we need to calculate the distances. We create a transhex operator that maps from cartesian to hex coordinates.

Javascript Editor

Now we build an operator to add text in the center.

Javascript Editor

And now we try to map the cantons. Make it beautiful is more difficult, however.

Javascript Editor

Javascript Editor

My Journey to PostScript