I just published a blog post on the codecentric blog site:
How to write a Kotlin DSL – e.g. for Apache Kafka and in German: Wie schreibt man eine Kotlin DSL – z.B. für Apache Kafka?
I just published a blog post on the codecentric blog site:
How to write a Kotlin DSL – e.g. for Apache Kafka and in German: Wie schreibt man eine Kotlin DSL – z.B. für Apache Kafka?
I just released mapjfx version 1.18.0 it should be found shortly at maven central, the artifact coordinates are:
<dependency> <groupId>com.sothawo</groupId> <artifactId>mapjfx</artifactId> <version>1.18.0</version> </dependency>
The source is available at GitHub.
The first change in this verison is that the OfflineCache instance now is a Singleton and shared between all instances of MapView objects in an application. This allows for more than one MapView to use the offline cache mechanisms.
The other change is that now for a pointer (mouse) move detetction when the pointer is over the map, an appropriate event is generated.
I just came upon the possibility that in Java it is possible within regular expressions to turn case sensitivity on and off. This is no new feature, it has been there since Java 1.4, but I never saw it before and thought it might be worth a post.
So let’s assume I want to have a regular expression which matches the three words “goodbye bLuE SKIES” – the first in lowercase, the second mixed and the last in uppercase. This can be done with the following regular expression:
goodbye (?i)blue(?-i) SKIES
The “(?i)” switches the pattern to case insensitive, and “(?-i)” switches it back to case sensitive.
The java API doc https://docs.oracle.com/javase/8/docs/api/ lists these as “Special constructs”. And although they use the parenthesis, thesi constructs do not capture anything in a group.
I just released mapjfx version 1.17.0 it should be found shortly at maven central, the artifact coordinates are:
<dependency> <groupId>com.sothawo</groupId> <artifactId>mapjfx</artifactId> <version>1.17.0</version> </dependency>
The source is available at GitHub.
mapjfx now ow uses OpenLayers 4.6.5.
As a new feature, the MapView object now emits events whenever the extent of the map changes. This happens when the center of the map is changed, the zoom value is changed or when the map’s window size is changed. The event can be processed like this:
// add an event handler for extent changes and display them in the status label mapView.addEventHandler(MapViewEvent.MAP_BOUNDING_EXTENT, event -> { event.consume(); labelExtent.setText(event.getExtent().toString()); });