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.


In reply to Perl Module to output world maps with countries highlighted by alek

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.