LeafletMap

WebJar for LeafletMap

License

License

Categories

Categories

Leaf Data Databases
GroupId

GroupId

org.webjars.bowergithub.n1k145
ArtifactId

ArtifactId

leafletmap
Last Version

Last Version

1.1.4.1
Release Date

Release Date

Type

Type

jar
Description

Description

LeafletMap
WebJar for LeafletMap
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/N1k145/LeafletMap

Download leafletmap

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bowergithub.n1k145/leafletmap/ -->
<dependency>
    <groupId>org.webjars.bowergithub.n1k145</groupId>
    <artifactId>leafletmap</artifactId>
    <version>1.1.4.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bowergithub.n1k145/leafletmap/
implementation 'org.webjars.bowergithub.n1k145:leafletmap:1.1.4.1'
// https://jarcasting.com/artifacts/org.webjars.bowergithub.n1k145/leafletmap/
implementation ("org.webjars.bowergithub.n1k145:leafletmap:1.1.4.1")
'org.webjars.bowergithub.n1k145:leafletmap:jar:1.1.4.1'
<dependency org="org.webjars.bowergithub.n1k145" name="leafletmap" rev="1.1.4.1">
  <artifact name="leafletmap" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bowergithub.n1k145', module='leafletmap', version='1.1.4.1')
)
libraryDependencies += "org.webjars.bowergithub.n1k145" % "leafletmap" % "1.1.4.1"
[org.webjars.bowergithub.n1k145/leafletmap "1.1.4.1"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

LeafletMap

This is a fork of https://github.com/ssaring/sportstracker/tree/master/leafletmap

LeafletMap is a JavaFX component for displaying an OpenStreetMap based map inside a JavaFX WebView by using the Leaflet JavaScript library.

There is a demo application inside the test directory which shows how to use the LeafletMap component.

Both the LeafletMap component and the demo application are written in Kotlin.

Dependencies and used libraries

Status

  • map viewer features:
    • supports OpenStreetMap, OpenCycleMap, HikeBikeMap, MtbMap and MapBox layers, more can be added easily
    • MapBox layer: a project specific token is required for MapBox! A test token for a limited time can be found in the Leaflet tutorial.
    • layers can be switched at runtime by the user
    • zoom and scale controls can be configured
    • scale supports metric and imperial units
    • markers in multiple colors can be displayed
    • tracks (routes) can be displayed
    • the map is zoomed properly to fit the track
    • tooltips can be displayed on the map
  • colored markers are supported by the embedded "leaflet-color-markers" library (modified, e.g. added proper retina icon support)
  • the leaflet and the leaflet-color-markers libraries are included locally, no download at runtime needed
  • map viewer can be used offline, the route and the markers are shown without the map data
  • the LeafletMapView component API can also be used from Java without problems (default method parameters are supported via @JvmOverloads)
  • the demo application displays a GPS track read from a JSON file, the user can replay the track by using a position slider

Changelog

LeafletMap 1.1.4.1:

  • Bugfix

LeafletMap 1.1.4:

  • Improved support for customMarkers

LeafletMap 1.1.3:

  • Added Wrapper Class for Marker

LeafletMap 1.1.2:

  • Added Events
    • MarkerClickEvent
    • MapClickedEvent
    • MapMovedEvent

LeafletMap 1.1:

  • Added support for customMarkers
  • Added removeMarker function
  • Added changeIconOfMarker function

LeafletMap 1.0.2:

  • Updated to Kotlin 1.2.0

LeafletMap 1.0.1:

  • Updated to Kotlin 1.1.50
  • API: added methods for setting the center position and zoom level (was only possible for tracks before)

License

(C) 2017 Stefan Saring

(C) 2017 Niklas Kellner

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.

You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Versions

Version
1.1.4.1