You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: rewrite README with modular JavaFX guide and modern usage examples
- Overhauled README.md with a new structure, aligned with JPMS and JavaFX 19+
- Added detailed module usage instructions, Maven setup, and quick start guide
- Documented map layers, events, and GeoJSON usage more clearly
- Updated changelog for v1.9.5
build: migrate project to Java 17 with full JPMS support
- Set compiler target to Java 17 in pom.xml
- Updated all JavaFX dependencies to use ${javafx.version} property (19.0.2.1)
- Added lombok annotation processor to support modular build
- Updated maven-compiler-plugin with required --add-modules and --add-opens flags
- Added maven-jar-plugin and maven-surefire-plugin configurations for module support
- Removed use of internal JavaFX APIs (e.g., WebConsoleListener) for module compatibility
> Leaflet is the leading open-source JavaScript library for mobile-friendly interactive maps. Weighing just about 38 KB of JS, it has all the mapping features most > developers ever need.
13
12
> Leaflet is designed with simplicity, performance and usability in mind. It works efficiently across all major desktop and mobile platforms, can be extended with > lots of plugins, has a beautiful, easy to use and well-documented API and a simple, readable source code that is a joy to contribute to.
14
13
14
+
## Features
15
15
16
-
## Getting start
16
+
-**Java Platform Module System (JPMS) Compatible**: Fully modularized for Java 17+
You can add GeoJson data from three different sources:
162
-
* From a file using `map.getGeoJsonLayer().addFromFile([FILE])`
163
-
* From a URL using `map.getGeoJsonLayer().addFromUrl([URL])`
164
-
* From a GeoJson content `map.getGeoJsonLayer().addFromContent([CONTENT])`
165
-
### Styling
193
+
```bash
194
+
# Clean and compile
195
+
mvn clean compile
166
196
167
-
You can pass `JLOptions` to each method for changing the default style!
197
+
# Run tests
198
+
mvn test
168
199
169
-
```java
170
-
map.getVectorLayer()
171
-
.addCircle(JLLatLng.builder()
172
-
.lat(35.63)
173
-
.lng(51.45)
174
-
.build(), 30000,
175
-
176
-
JLOptions.builder()
177
-
.color(Color.BLACK)
178
-
.build()
179
-
);
200
+
# Package
201
+
mvn package
202
+
203
+
# Install to local repository
204
+
mvn install
180
205
```
181
206
182
-
For the map itself, you can choose between themes available in `JLProperties.MapType` class. The `JLProperties.MapType.OSM_MAPNIK` is available to be used without any access key but for the rest of them, you need to define your own map using `JLProperties.MapType` and passing proper list of key-values containing all the necessary access keys.
183
-
```java
184
-
JLProperties.MapType myMapType = new JLProperties.MapType("HEREv3.terrainDay",
-**Major**: Upgraded to Java Platform Module System (JPMS)
258
+
-**Major**: Updated to Java 17 compatibility
259
+
-**Major**: Removed internal JavaFX API dependencies
260
+
-**Enhancement**: Improved module structure and encapsulation
261
+
-**Enhancement**: Updated Maven configuration for module support
262
+
-**Fix**: Resolved Lombok annotation processing in module environment
202
263
203
264
## TODO
204
265
@@ -209,10 +270,8 @@ Read more:
209
270
-[ ] Separating JS and HTML
210
271
-[ ] Publishing package on GitHub
211
272
212
-
**Disclaimer**: I've implemented this project for one of my academic paper in the area of geo-visualization. So, im not contributing actively!One more thing, I'm not a Javascript developer!
213
-
214
-
215
273
274
+
**Disclaimer**: I've implemented this project for one of my academic paper in the area of geo-visualization. So, im not contributing actively! One more thing, I'm not a Javascript developer!
0 commit comments