you enlarge the window, the square keeps the same size and the cross is
bigger. Perfect ! This is what we want. But the scene is not completely
were wondering if we were not using correctly JavaFX or FXGraphics2D
but if you comment the line 87 (renderer.paint(graphics, rectangle,
map.getViewport().getBounds());), it works (but no red cross).
you uncomment the line 87 and comment the line 72 (map.addLayer(layer)),
it still works (with many exceptions and still without the red cross).
our issue seems to be related to the FeatureLayer class. As soon as we
want to render a feature layer, a part of the screen is not rendered.
Any idea ? What are we doing wrong ? Is it a bug in GeoTools ? In
FXGraphics2D ? It works well with the JMapFrame to render the same
Our configuration is JRE 1.8.0_144, GeoTools 17.2 and FXGraphics2D 1.5.