From: Michael B. <mic...@gm...> - 2009-06-24 10:22:55
|
Hello, Something like this perhaps... double centreX = ... // desired map location x coord double centreY = ... // desired map location y coord double mapSide = ... // length of the longest side of the new map display, in appropriate geo coords com.vividsolutions.jts.geom.Envelope env = new com.vividsolutions.jts.geom.Envelope( centreX - mapSide/2, centreX + mapSide/2, centreY - mapSide/2, centreY + mapSide/2); myMapPane.setMapArea( env ); myMapPane.repaint(); Hope this helps Michael |