[geotk] Draggable map display panel?

Jon Blower j.d.blower at reading.ac.uk
Thu Feb 23 09:26:44 EST 2012

Many thanks Johann!  This is very nice work.  I got a basic demo to work (after finally figuring out how to set up my maven project - couldn't find the JAI dependencies for a while, but I've got them now).  I have a couple of questions:

1) Is the Javadoc or source code available on your Maven repository anywhere?  My IDE doesn't download it - perhaps I need to download and install it manually?

2) Is it possible to have tiled layer that is backed by a WMS?  (So the requests to the back-end WMS use a fixed set of bounding boxes?)

3) I noticed in the repository that there was a package specific to ncWMS (geotk-client-ncwms), although it doesn't seem to be in the published javadoc online.  Is this package ready to experiment with?


-----Original Message-----
From: geotoolkit-bounces at lists.osgeo.org [mailto:geotoolkit-bounces at lists.osgeo.org] On Behalf Of sorel johann
Sent: 22 February 2012 18:32
To: geotoolkit at lists.osgeo.org
Subject: Re: [geotk] Draggable map display panel?


Sure we have that, from navigation (up to 4D CRS) to geometry edition, layer view, selection, map overlayers, style editor ... and so on ...

Maven dependency :

The class you are looking for is org.geotoolkit.gui.swing.go2.JMap2D in geotoolkit-pending.
You will have to create a MapContext object using MapBuilder utility class.

Plenty of examples can be found in the demo module :

If you are looking for something 'out of the box' then use
 > JMap2DFrame.show( mapcontext )
This will display a complete frame with map, toolbars, layer view, style 
editor ... some kind of small open-jump convinient for debugging.

If you are looking for map overlays or decorations then here is the 
package :

We call those MapDecoration, the AbstractGeometryDecoration is a good 
place to start with.
It will give you a good example of how to paint stuffs using the canvas 
MathTransforms to keep eveything correctly projected.

You can also plug objects directly in the rendering engine, it has 
several extension points.
it depends on what you are looking for :
 > Graphic objects : completely custom painted stuffs
 > GraphicBuilders : to replace the default SLD/SE rendering on maplayers
 > Decorations : to set over the map in swing widgets
 > Symbolizer : new symbolizer to extend SLD/SE

Aside all this you can use :
 > DefaultPortrayalService : to render map images
 > DefaultLegenService : to produce legends
 > DefaultGlyphService : to produce small glyphs (used in legends)
 > DefaultJasperReportService : to export more complex documents made 
with ireport
    (the rendering engine can be plugged in jasper report rendering 
pipeline, this way we obtain vector quality reports in pdf )

Demos/samples on the renderer are here :

Johann Sorel

On 22/02/2012 18:21, Jon Blower wrote:
> Hi Geotoolkit folk,
> Does Geotoolkit have a widget (JComponent or JPanel) for displaying maps?  I'm looking for something that:
> 1. Is draggable and zoomable (like OpenLayers)
> 2. has a geographic coordinate system
> 3. Can overlay images and other geographic features
> 4. Can detect clicks and report where the click happened in latitude/longitude coordinates.
> I've found ZoomPanel -perhaps there's a subclass of this somewhere in geotk-pending?
> Thanks in advance, Jon
> --
> Dr Jon Blower
> Technical Director, Reading e-Science Centre
> Environmental Systems Science Centre
> University of Reading, UK
> Tel: +44 (0)118 378 5213
> http://www.resc.reading.ac.uk
> _______________________________________________
> Geotoolkit mailing list
> Geotoolkit at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geotoolkit

Geotoolkit mailing list
Geotoolkit at lists.osgeo.org

More information about the Geotoolkit mailing list