File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
src/main/java/com/esri/samples/raster/raster_layer_geopackage Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -51,10 +51,9 @@ public void start(Stage stage) throws Exception {
5151 stage .setScene (scene );
5252 stage .show ();
5353
54- mapView = new MapView ();
55-
5654 // create a map with light gray canvas vector basemap
5755 ArcGISMap map = new ArcGISMap (Basemap .createLightGrayCanvasVector ());
56+ mapView = new MapView ();
5857 mapView .setMap (map );
5958
6059 // create a geopackage from a local gpkg file
@@ -87,7 +86,6 @@ public void start(Stage stage) throws Exception {
8786 }
8887 });
8988
90-
9189 // add the map view to stack pane
9290 stackPane .getChildren ().addAll (mapView );
9391 } catch (Exception e ) {
@@ -100,7 +98,7 @@ public void start(Stage stage) throws Exception {
10098 * Stops and releases all resources used in application.
10199 */
102100 @ Override
103- public void stop () throws Exception {
101+ public void stop () {
104102
105103 if (mapView != null ) {
106104 mapView .dispose ();
You can’t perform that action at this time.
0 commit comments