Creating a 2D Map

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.

There’s no such function in OpenGL.

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:

http://www.mgaqua.net/AquaDoc/Projections/img/Equidistant%20Cylindrical.jpg

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.