mapjfx version 1.7.3 is released to maven central; the artifact coordinates are:
<dependency> <groupId>com.sothawo</groupId> <artifactId>mapjfx</artifactId> <version>1.7.3</version> </dependency>
The source is available at GitHub.
Now version 3.17.1 of OpenLayers is used. The support for MapQuest maps is removed, this being a consequence of it’s removal from OpenLayers (more info to be found here).
Comments and contributions welcome.
thank you very much! sothawo is very useful for me.
but i have some trouble.
I want make a click on a marker and show dialog. But I did not know How to do it.
like MapView, I can add a event on this,like below. but I cannot do the something on a marker。what I can do ? Thank again.
mapView.addEventHandler(CoordinateEvent.MAP_CLICKED, event -> {
event.consume();
if (markerClick.getVisible()) {
boolean needToAddMarker = (null == markerClick.getPosition());
markerClick.setPosition(event.getCoordinate());
if (needToAddMarker) {
// adding can only be done after coordinate is set
mapView.addMarker(markerClick);
}
}
});