View Full Version : Creating a 2D Map

03-06-2006, 05:34 AM
Hey everyone,

I'm trying to create a 2D map using OpenGL which shows (latitude/longitude) locations. Does anyone know if there's an existing function that draws these locations by taking long/lat positions as its parameters?

Any help would be very much appreciated.

03-07-2006, 03:21 PM
There's no such function in OpenGL.

03-07-2006, 03:45 PM
Just photoshop a 2D image with the symbology on it and load it as a texture. The parameters 0-1 in s and t will then apply those values. Something with equal azimuthal and longitudinal projections.

Like this image, but with numbers added:


Remember for longitude it's -180 to +180 but for latitude it's -90 to +90.

The image you're looking to generate as a texture is called a "cylindrical equidistant projection". Google for it.