This tool makes two requests sampled directly from the census page
The "dynamic" current territory control of the specified server and continent
The "static" list of hexes within a given region
By iterating through the dynamic data and then coloring the hexes given by the static data, the map can be drawn with current territory.
Using API data as the source for all information helps it keep up with game updates.