tillnagel / unfolding

A library to create interactive maps and geovisualizations in Processing and Java
http://unfoldingmaps.org
Other
477 stars 245 forks source link

Setting x,y pos of map with Java2D fails. Always at 0,0 #88

Open tillnagel opened 10 years ago

tillnagel commented 10 years ago

An UnfoldingMap initiated with a set position always shows at the origin of the screen, when the Java2D default renderer is used.

size(500, 500); new UnfoldingMap(this, "map1", 50, 50, 200, 200);

Works fully with P2D or P3D. Dimension (w/h) of the map works also in Java2D.

tillnagel commented 10 years ago

In Java2DMapDisplay offsetX and offsetY are not used to offset the map. This is done only in OpenGLMapDisplay.postDraw() at the moment.