[thelist] Building a Clickable World Map in .NET

Robert Gormley robert at pennyonthesidewalk.com
Mon Jul 19 20:56:29 CDT 2004

> -----Original Message-----
> On Jul 13, 2004, at 2:49 PM, Jonathan Karlen wrote:
> > I need to build a world map in .NET.  The onClick event of an
> > ImageButton object supplies the X and the Y.  The image map I was given
> > to work on is all in polygrams so just knowing the X and the Y doesn't
> > do necessarily accomplish anything unless X and Y match a point exactly
> > on the polygram.  Databasing each pixel on the map and its
> > corresponding
> > country isn't exactly a streamlined process.

It does, but you need to extrapolate a bit - from a polygon you can run a
test to see in which the pixel falls - .net has some geometric functions for
tracking a line in 2D space, so this is doable, though I've never had need.

More information about the thelist mailing list