Hello,

If you can switch on the latest GeoTools (snapshot one)
I suggest you use the JStreamNavMap.
http://docs.codehaus.org/display/GEOTOOLS/Map2D+structure

You can add decoration layers in this widget.
There is also plenty more possibilities.

regards

johann sorel 
(also knowned as eclesia)


2008/7/28 Mirza Farrukh <[EMAIL PROTECTED]>:

> > Hi jody,
> >
> > I have tried using normal graphics objects in this example and have also
> > tried with icon.paintIcon() method. The problem i am facing is that the
> > image is drawn on the screen and then it disappears after a second. It
> > doesn't stay there.
> >
> > Actually, i have derived another class from JMapPane and over-riden
> > mouse-clicked() and paintComponent() methods to display an icon when i click
> > on the JMapPane, hence extending functionality of the example. To do this I
> > have used the code snippets from JMapPane.java.
> >
> > Also, I am using countries.shp and countries.sld as maps.
> >
> > I will be really thankful, if you or someone can help me in this regard.
> >
> > Regards,
> >
> > Farrukh.
> >aturday, July 26, 2008, 1:45 AM
> >
> > Have a look inside JMapPane; it really just uses the graphics2d api to
> > draw a map onto your component. You can draw an icon onto the component
> > yourself - Icon has a draw method that takes an x and y coordinate.
> > Jody
-- 
Johann Sorel

Company - Geomatys GIS Developer
Mail - [EMAIL PROTECTED]


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to