File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/main/java/com/esri/samples/featurelayers/feature_layer_shapefile Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ public void start(Stage stage) throws Exception {
6565 FeatureLayer featureLayer = new FeatureLayer (shapefileFeatureTable );
6666 featureLayer .addDoneLoadingListener (() -> {
6767 if (featureLayer .getLoadStatus () == LoadStatus .LOADED ) {
68- // zoom to the feature layer's extent
68+ // zoom to the area containing the layer's features
6969 mapView .setViewpointGeometryAsync (featureLayer .getFullExtent ());
7070 } else {
7171 Alert alert = new Alert (Alert .AlertType .ERROR , featureLayer .getLoadError ().getMessage ());
@@ -88,7 +88,7 @@ public void start(Stage stage) throws Exception {
8888 * Stops and releases all resources used in application.
8989 */
9090 @ Override
91- public void stop () throws Exception {
91+ public void stop () {
9292
9393 if (mapView != null ) {
9494 mapView .dispose ();
Original file line number Diff line number Diff line change 99<p >To show a shapefile as a feature layer:</p >
1010
1111<ol >
12- <li >Create a <code >ShapefileFeatureTable</code > passing in the URL of a shapefile.</li >
12+ <li >Create a <code >ShapefileFeatureTable</code > passing in the URI of a shapefile.</li >
1313 <li >Create a <code >FeatureLayer</code > using the <code >ShapefileFeatureTable</code >.</li >
1414 <li >Add the layer to the map with <code >map.getOperationalLayers().add(featureLayer)</code >.</li >
1515</ol >
You can’t perform that action at this time.
0 commit comments