mapjfx 1.13.1 using OpenLayers 4.2.0

I just released mapjfx version 1.13.1 it should be found shortly at maven central, the artifact coordinates are:

  <dependency>
    <groupId>com.sothawo</groupId>
    <artifactId>mapjfx</artifactId>
    <version>1.13.1</version>
  </dependency>

The source is available at GitHub.

Now uses OpenLayers 4.2.0.

Comments and contributions welcome.

the shortest code to throw a NullPointerException

If I were to throw a NullpointerException from within my code I normally would code something like this:

if(somethingIsNull) {
  throw new NullPointerException();
}

While reading the code examples on https://github.com/reactive-streams/reactive-streams-jvm I just saw this definitely shorter possibility which I did not know up to now:

if(somethingIsNull) {
  throw null;
}

mapjfx 1.13.0 adds the possibility to exclude URLs from being cached

I just released mapjfx version 1.13.0 it should be found shortly at maven central, the artifact coordinates are:

  <dependency>
    <groupId>com.sothawo</groupId>
    <artifactId>mapjfx</artifactId>
    <version>1.13.0</version>
  </dependency>

The source is available at GitHub.

The offline cache now can be configured with a collection of Strings (Java RegExp patterns) so that URLs matching any of these will not be cached.

 

Comments and contributions welcome.