alek has asked for the wisdom of the Perl Monks concerning the following question:

Perl Monks,

I have looked high and far for a Perl Module that will generate a map of the world that allows me to highlight various countries. This is a little different than "place a marker at Lat/Long" in that ideally it would be a module where I could say something like:

&initialize; &color_country("US","red"); &color_country("DE","green"); &color_country("GB","blue"); &output_map("some filename");
and a JPEG/GIF would be generated that is a map of the world with the United States in red, Germany in green, and Great Britian in blue. My guess is something like this would be built on top of GD (which I've used), but despite a buncha searching, I just can't seem to find it.

Thanx, alek

UPDATE: I've looked at the 3 replies (thanx guys) so far and continued Googl'ing/searching, but have yet to find anything that will generate 2-D maps of the world, with the countries outlined ... with some sort of ability to solid fill color by country. If I come across this, I'll circle back here and let folks know.

Replies are listed 'Best First'.
Re: Perl Module to output world maps with countries highlighted
by chanio (Priest) on Aug 07, 2005 at 17:45 UTC
Re: Perl Module to output world maps with countries highlighted
by Corion (Patriarch) on Aug 08, 2005 at 08:13 UTC

    Also, you might consider learning from the fate of the "select timezone by country" chooser widget of MS Windows - Microsoft removed that feature because too many countries complained about border lines being drawn that were disputed by at least one side of the border. So if your website is geared towards international customers, you might want to consider either removing the feature or adding a disclaimer that your maps do not necessarily reflect the actual border lines and are only for illustration purposes.

Re: Perl Module to output world maps with countries highlighted
by cog (Parson) on Aug 08, 2005 at 16:06 UTC
    If you do get around to doing something like this, don't forget to announce it here. It would be a nice thing to see and have :-)
Re: Perl Module to output world maps with countries highlighted
by jalewis2 (Monk) on Oct 22, 2005 at 19:20 UTC
    Did anyone ever find a solution for this? It would be handy to have.
      I have not ... so far ...