Hello Guy,
Apologies for the long delay in replying - I'm disorganized.
As you suggest, the best way to achieve what you want is to override
the JMapPane.paintComponent.
protected void paintComponent(Graphics g) {
// first call the map pane's method to draw the map
super.paintComponent(g);
// now draw your graphics on top of the map
....
}
Ideally the map pane would provide for one or more layers of graphics.
Someone worked on this in another unsupported module
(widgets-swing-pending) but it was never completed or documented.
If there is sufficient demand I could look at adding this to JMapPane
but that will have to wait until GeoTools 2.7.
Hope this helps. Let us know how you go.
Michael
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users