JavaFX Map Module
Alexander Wöstmann edited this page May 4, 2017
·
1 revision
A JavaFX component, using Geotools to display a map from a Web Map Service in a JavaFX Canvas.
The Map is obtained via a Geotools WMSLayer and then rendered into a FXGraphics2D using a StreamingRenderer. FXGraphics2D is a Graphics2D implementation that can target a JavaFX Canvas.
A small demo application is available at https://github.com/awoestmann/geotools-fx-map-test/
- Panning
- Zooming
- Mouse Controls
- Drawing a polygon in well-known text format
- Adding layers to the map
- Changing CRS
- Drawing Maker/Bounding Boxes on the map
- Use image scaling to provide a smoother experience while zooming
- Improve behaviour near maximum map bounds
- Polygon selection
-
Geotools ((C) 2008, Open Source Geospatial Foundation (OSGeo))
-
JFree FXGraphics2D (Copyright (c) 2014, Object Refinery Limited)