resourceManager= res;
}
@Override
public void paint(GL gl) {
Projection pr = viewPort.getProjection();
double step = MapMath.degToRad(10);
gl.glEnable(GL.GL_LINE_STIPPLE);
gl.glDisable(GL.GL_LINE_SMOOTH);
gl.glLineStipple(1, (short) 0x000F);
gl.glLineWidth(0.01f);
gl.glBegin(GL.GL_LINES);
gl.glDisable(GL.GL_LIGHTING);
gl.glDisable(GL.GL_TEXTURE_2D);
gl.glColor4d(0, 0, 0, 0.5);
for (double lambda = pr.getMinLongitude(); lambda <= pr
.getMaxLongitude(); lambda += step) {
for (double phi = pr.getMinLatitude(); phi < pr.getMaxLatitude(); phi += step) {
Point2D.Double ptn0 = pr.project(lambda, phi,
new Point2D.Double());
Point2D.Double ptn1 = pr.project(lambda + MapMath.degToRad(10),
phi + step, new Point2D.Double());
gl.glVertex2d(MapMath.radToDeg(ptn0.x), MapMath
.radToDeg(ptn0.y) / 2);
gl.glVertex2d(MapMath.radToDeg(ptn0.x), MapMath
.radToDeg(ptn1.y) / 2);