Toolkit

The ArcGIS Runtime SDK for Java offers a toolkit with JavaFX components to help simplify your Java development work. Available components include:

  • Compass: Shows the current viewpoint heading. Can be clicked to reorient the view to north.
  • Floor Filter: Shows sites and facilities, and enables toggling the visibility of levels on floor-aware maps and scenes.
  • Overview Map: Indicates the viewpoint of the main map/scene view.
  • Scalebar: Shows a ruler with units proportional to the map's current scale.
  • Feature Template Picker: Shows feature templates for a collection of feature layers.
  • Utility Network Trace Tool: Enables a utility network trace experience for maps authored with a trace configuration.

Add the dependency using Gradle

The toolkit library jar is hosted on https://esri.jfrog.io/artifactory/arcgis.

  1. If you haven't already, install and set up ArcGIS Runtime SDK for Java.

  2. To add the dependency to your project using Gradle, use the following code. For other install options or more detail, see Install and set up.

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
plugins {
    id 'application'
    id 'org.openjfx.javafxplugin' version '0.0.13'
}

// Replace with version number of ArcGIS SDK you are using in your app, such as:
// arcgisVersion = '100.15.6'. See table below for SDK Versions that support the toolkit.
ext {
  arcgisVersion = '100.15.6'
}

javafx {
    version = "17.0.2"
    modules = [ 'javafx.controls' ]
}

compileJava.options.encoding = 'UTF-8'

// Toolkit and Runtime SDK repository
repositories {
    jcenter()
    maven {
        url 'https://esri.jfrog.io/artifactory/arcgis'
    }
}

configurations {
    natives
}

dependencies {
    implementation "com.esri.arcgisruntime:arcgis-java:$arcgisVersion"
    natives "com.esri.arcgisruntime:arcgis-java-jnilibs:$arcgisVersion"
    natives "com.esri.arcgisruntime:arcgis-java-resources:$arcgisVersion"
    implementation 'com.esri.arcgisruntime:arcgis-java-toolkit:100.15.0'
}

Requirements

The following table shows the minimum version of the SDK compatible with the toolkit:

SDK VersionToolkit Version
100.2.1100.2.1
100.14.0100.14.0
100.15.0100.15.0

Issues

Find a bug or want to request a new feature? Please let us know by submitting an issue.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.