git clone https://github.com/lazystone/digpro.git
cd digpro
./gradlew clean build
# Run application
java -jar build/libs/digpro-0.0.1-SNAPSHOT.jar- You can use mouse to move over the map(drag&drop it).
- There is not any tests but there isn't much business logic either.
- Method which is used to filter out visible locations is simple, for bigger datasets something like
kd-treesshould be used. - Things like locations URL and auto-reload frequency should be moved to application properties rather than to be hard-coded, but I'm out of time now.
- ViewPort coordinates are stored as fields in MapCanvas, but more correct way is to send them as parameters
from
mouseDraggedtorefreshmethod to avoid possible inconsistency(again out of time to fix this).
- For better Swing support use https://bell-sw.com/pages/downloads/native-image-kit/#nik-24-(jdk-24)
- Install additional libraries: https://www.graalvm.org/latest/getting-started/linux/#prerequisites-for-native-image-on-linux
- Build normal java application:
./gradlew build - Generate reachability metadata(for a native build):
java -agentlib:native-image-agent=config-output-dir=src/main/resources/META-INF/native-image -jar build/libs/digpro-0.0.1-SNAPSHOT.jarand use application as much as possible. - Build:
./gradlew nativeCompile
