Java

Using geo-distance sort in Spring Data Elasticsearch 4

The release of Spring Data Elasticsearch in version 4.0 (see the documentation) brings two new features that now enable users to use geo-distance sorts in repository queries: The first is a new class GeoDistanceOrder and the second is a new return type for repository methods SearchHit<T>. In this post I will show how easy it is to use these classes to answer questions like “Which pubs are the nearest to a given location?

mapjfx display problems update

For the last two years a problem was coming up occasionally with some users, that only the top left area of the map is displayed, and the rest is not loading: https://github.com/sothawo/mapjfx/issues/36 https://github.com/sothawo/mapjfx/issues/81 Thanks to the analysis of Martin Stiel in a comment and Victor Ewert in issue 81 it seems that this can be traced to a problem when running the application on a high resolution display. Alas I cannot reproduce this as I have no hardware with a resolution that might be high enough.

mapjfx 1.32.0 and 2.14.0 adds the ability to rotate markers and labels

I just released mapjfx versions 1.32.0 and 2.14.0, they will be available in maven central: <dependency> <groupId>com.sothawo</groupId> <artifactId>mapjfx</artifactId> <version>1.32.0</version> </dependency> <dependency> <groupId>com.sothawo</groupId> <artifactId>mapjfx</artifactId> <version>2.14.0</version> </dependency> 1.32.0 is built using Java 8 and 2.14.0 uses Java 11. Markers and Labels on a map now have a rotation property which will rotate the corresponding HTML Element. The values goes from 0 to 360 and defines the rotating angle clockwise.

Talking at Spring I/O 2020

After working on Spring Data Elasticsearch for nearly a year now, I’m proud that I will have a talk “Next Level Elasticsearch Integration with Spring Data Elasticsearch” at Spring I/O 2020 in Barcelona! Edit: Spring I/O is postponed to October 2020 due to Covid-19. Edit 2: Alas the conferebnce was cancelled.

mapjfx 1.31.1 and 2.13.1 fixing event triggering regression

I just released mapjfx versions 1.31.1 and 2.13.1, they will be available in maven central: <dependency> <groupId>com.sothawo</groupId> <artifactId>mapjfx</artifactId> <version>1.31.1</version> </dependency> <dependency> <groupId>com.sothawo</groupId> <artifactId>mapjfx</artifactId> <version>2.13.1</version> </dependency> 1.31.1 is built using Java 8 and 2.13.1 uses Java 11. These versions fix a regression where events for markers and labels (mouse enter/leave, context click etc) where not created anymore due to enabling scroll/zoom behaviour on markers and labels. Now all events are dispatched again as they should.

mapjfx 2.13.0 switches back to use Java 11 (LTS)

I just released mapjfx version 2.13.0, it will be available in maven central: <dependency> <groupId>com.sothawo</groupId> <artifactId>mapjfx</artifactId> <version>2.13.0</version> </dependency> I switched back to use Java 11 (LTS) as SceneBuilder is only available for Java 11 (https://gluonhq.com/products/scene-builder/) and libraries built with version 12 or 13 cannot be used in SceneBuilder 11.

mapjfx 1.30.0 and 2.11.0 with new Bing Maps MapTypes

I just released mapjfx versions 1.30.0 and 2.11.0, they will be available in maven central: <dependency> <groupId>com.sothawo</groupId> <artifactId>mapjfx</artifactId> <version>1.30.0</version> </dependency> <dependency> <groupId>com.sothawo</groupId> <artifactId>mapjfx</artifactId> <version>2.11.0</version> </dependency> 1.30.0 is built using Java 8 and 2.11.0 uses Java 12. In these version 4 new variants for the Bing Map mapType are added (thanks to https://github.com/MalteBahr)

mapjfx 1.29.0 and 2.10.0 now with OpenLayers 6.0.1 and extension constrains

I just released mapjfx versions 1.29.0 and 2.10.0, they will be available in maven central: <dependency> <groupId>com.sothawo</groupId> <artifactId>mapjfx</artifactId> <version>1.29.0</version> </dependency> <dependency> <groupId>com.sothawo</groupId> <artifactId>mapjfx</artifactId> <version>2.10.0</version> </dependency> 1.29.0 is built using Java 8 and 2.10.0 uses Java 12. This version updates the OpenLayers library to version 6.0.1 (https://github.com/sothawo/mapjfx/issues/66). Additionally it is now possible to constrain the panning and zooming of a map to a given extent (https://github.com/sothawo/mapjfx/issues/62).

mapjfx 2.9.0 and 1.28.0 with offline cache improvements

I just released mapjfx versions 1.28.0 and 2.9.0, they will be available in maven central: <dependency> <groupId>com.sothawo</groupId> <artifactId>mapjfx</artifactId> <version>1.28.0</version> </dependency> <dependency> <groupId>com.sothawo</groupId> <artifactId>mapjfx</artifactId> <version>2.9.0</version> </dependency> 1.28.0 is bilt using Java 8 and 2.9.0 uses Java 12. These releases add the possibility to pass a list of URLs (map tiles) to the OfflineCache to have the cache populated in the background with the data from these URLs (https://github.com/sothawo/mapjfx/issues/64) Example: private void initOfflineCache() { final OfflineCache offlineCache = OfflineCache.

mapjfx 2.8.0 and 1.27.0 with improved configuration options

it is now possible to disable the zoom controls on the Map (Issue #59) using the new introduced configuration object like this: mapView.initialize(Configuration.builder() .showZoomControls(false) .build()); versions 1.27.0 and 2.8.0 will be available in maven central: <dependency> <groupId>com.sothawo</groupId> <artifactId>mapjfx</artifactId> <version>1.27.0</version> </dependency> <dependency> <groupId>com.sothawo</groupId> <artifactId>mapjfx</artifactId> <version>2.8.0</version> </dependency>