parttio / maplibre

MapLibre GL Vaadin }> API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MapLibreGL add-on project for Vaadin

A Vaadin add-on that implements Java API for MapLibreGL slippy map component.

Features:

  • Show vector tile maps as background layer
  • Plot markers, lines and polygons on the map using the "standard" JTS data types.
  • Binder compatible editor components for Point, LineString and Polygon data types.

For code examples, check out the src/test/java directory.

Online demos:

Demo app showing the basic features

Development instructions

Currently, the add-on is implemented purely with DOM API + JS calls. The required JS & CSS are injected on the fly. The rationaly was to avoid the need for custom front-end bundle -> easier to maintain and take in use in application projects.

Development

Starting the test/demo server:

mvn jetty:run

This deploys demo at http://localhost:8080

Integration test

TODO add integration tests :-)

Publishing to Vaadin Directory

With commit rights to the repository, issue:

mvn release:prepare release:clean

Configured GH action will build a release and push to Maven Central.

About

MapLibre GL Vaadin }> API

License:Apache License 2.0


Languages

Language:Java 98.7%Language:JavaScript 0.8%Language:CSS 0.4%