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.
  • Overview Map: Indicates the viewpoint of the main map/scene view.
  • Scalebar: Shows a ruler with units proportional to the map's current scale.

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.

                                    
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.8'
}

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

javafx {
    version = "11.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.2.1'
}

Requirements

The following table shows which versions of the SDK are compatible with the toolkit:

SDK VersionToolkit Version
100.2.1 or later100.2.1

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.