Skip to content

Commit 3756a5e

Browse files
committed
update comments, remove stop exception
1 parent 17dd0c2 commit 3756a5e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/com/esri/samples/featurelayers/feature_layer_shapefile/FeatureLayerShapefileSample.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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();

src/main/java/com/esri/samples/featurelayers/feature_layer_shapefile/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
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>

0 commit comments

Comments
 (0)