Skip to content

Commit c1b4204

Browse files
committed
resolved conflicts
1 parent 88560ed commit c1b4204

File tree

9 files changed

+32
-35
lines changed

9 files changed

+32
-35
lines changed

src/main/java/com/esri/samples/map/change_basemap/ChangeBasemapSample.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,6 @@ public void start(Stage stage) throws Exception {
7676

7777
// listener to switch ArcGISMap types when button clicked
7878
button.setOnAction(e -> {
79-
if (map != null) {
80-
mapView.setMap(null);
81-
}
8279
map = new ArcGISMap(Basemap.Type.valueOf(basemapString), LATITUDE, LONGITUDE, LOD);
8380
mapView.setMap(map);
8481
});

src/main/java/com/esri/samples/na/offline_routing/OfflineRoutingSample.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,13 +250,14 @@ private void updateRoute() {
250250
routeOverlay.getGraphics().clear();
251251
routeOverlay.getGraphics().add(graphic);
252252

253+
} catch (InterruptedException | ExecutionException e) {
254+
// ignore, no route solution
255+
256+
} finally {
253257
// add mouse moved listener back
254258
if (!stopsOverlay.getSelectedGraphics().isEmpty()) {
255259
mapView.setOnMouseMoved(mouseMovedListener);
256260
}
257-
258-
} catch (InterruptedException | ExecutionException e) {
259-
e.printStackTrace();
260261
}
261262
});
262263
}

src/main/java/com/esri/samples/raster/blend_renderer/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@ the satellite imagery, choose the color ramp type NONE.</p>
1212

1313
<h2>How it works</h2>
1414

15-
<p>To apply a `BlendRenderer` to a `RasterLayer`:</p>
15+
<p>To apply a <code>BlendRenderer</code> to a <code>RasterLayer</code>:</p>
1616
<ol>
17-
<li>Create a `Raster` from a raster file</li>
18-
<li>Create a `RasterLayer` from the raster</li>
19-
<li>Create a `Basemap` from the raster layer and set it to the map</li>
20-
<li>Create a `Raster` for elevation from a grayscale raster file</li>
21-
<li>Create a `BlendRenderer`, specifying the elevation raster, color ramp, and other properties</li>
17+
<li>Create a <code>Raster</code> from a raster file</li>
18+
<li>Create a <code>RasterLayer</code> from the raster</li>
19+
<li>Create a <code>Basemap</code> from the raster layer and set it to the map</li>
20+
<li>Create a <code>Raster</code> for elevation from a grayscale raster file</li>
21+
<li>Create a <code>BlendRenderer</code>, specifying the elevation raster, color ramp, and other properties</li>
2222
<ul>
2323
<li>If you specify a non-null color ramp, use the elevation raster as the base raster in addition to the
2424
elevation raster parameter. That way the color ramp is used instead of the satellite imagery</li>
2525
</ul>
26-
<li>Set the renderer on the raster layer with `rasterLayer.setRenderer(renderer)`.</li>
26+
<li>Set the renderer on the raster layer with <code>rasterLayer.setRenderer(renderer)</code>.</li>
2727
</ol>
2828

2929
<h2>Features</h2>

src/main/java/com/esri/samples/raster/hillshade_renderer/HillshadeRendererController.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,14 @@ public class HillshadeRendererController {
3333

3434
@FXML private MapView mapView;
3535
@FXML private ComboBox<SlopeType> slopeTypeComboBox;
36-
@FXML private ComboBox<ColorRamp.PresetType> colorRampComboBox;
3736
@FXML private Slider azimuthSlider;
3837
@FXML private Slider altitudeSlider;
3938

4039
private RasterLayer rasterLayer;
4140

4241
public void initialize() {
4342

44-
// create rasters
43+
// create raster
4544
Raster raster = new Raster(new File("./samples-data/raster/srtm.tiff").getAbsolutePath());
4645

4746
// create a raster layer

src/main/java/com/esri/samples/raster/hillshade_renderer/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ terrain) according to a sun angle.</p>
1111

1212
<h2>How it works</h2>
1313

14-
<p>To apply a `HillshadeRenderer` to a `RasterLayer`:</p>
14+
<p>To apply a <code>HillshadeRenderer</code> to a <code>RasterLayer</code>:</p>
1515
<ol>
16-
<li>Create a `Raster` from a grayscale raster file</li>
17-
<li>Create a `RasterLayer` from the raster</li>
18-
<li>Create a `Basemap` from the raster layer and set it to the map</li>
19-
<li>Create a `HillshadeRenderer`, specifying the slope type and other properties</li>
20-
<li>Set the renderer on the raster layer with `rasterLayer.setRenderer(renderer)`.</li>
16+
<li>Create a <code>Raster</code> from a grayscale raster file</li>
17+
<li>Create a <code>RasterLayer</code> from the raster</li>
18+
<li>Create a <code>Basemap</code> from the raster layer and set it to the map</li>
19+
<li>Create a <code>HillshadeRenderer</code>, specifying the slope type and other properties</li>
20+
<li>Set the renderer on the raster layer with <code>rasterLayer.setRenderer(renderer)</code>.</li>
2121
</ol>
2222

2323
<h2>Features</h2>

src/main/java/com/esri/samples/raster/rgb_renderer/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ image.</p>
1111

1212
<h2>How it works</h2>
1313

14-
<p>To apply a `RgbRenderer` to a `RasterLayer`:</p>
14+
<p>To apply a <code>RgbRenderer</code> to a <code>RasterLayer</code>:</p>
1515
<ol>
16-
<li>Create a `Raster` from a multispectral raster file</li>
17-
<li>Create a `RasterLayer` from the raster</li>
18-
<li>Create a `Basemap` from the raster layer and set it to the map</li>
19-
<li>Create a `RgbRenderer`, specifying the stretch parameters and other properties</li>
20-
<li>Set the renderer on the raster layer with `rasterLayer.setRenderer(renderer)`</li>
16+
<li>Create a <code>Raster</code> from a multispectral raster file</li>
17+
<li>Create a <code>RasterLayer</code> from the raster</li>
18+
<li>Create a <code>Basemap</code> from the raster layer and set it to the map</li>
19+
<li>Create a <code>RgbRenderer</code>, specifying the stretch parameters and other properties</li>
20+
<li>Set the renderer on the raster layer with <code>rasterLayer.setRenderer(renderer)</code></li>
2121
</ol>
2222

2323
<h2>Features</h2>

src/main/java/com/esri/samples/raster/rgb_renderer/RgbRendererController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public class RgbRendererController {
5050

5151
public void initialize() {
5252

53-
// create rasters
53+
// create raster
5454
Raster raster = new Raster(new File("./samples-data/raster/Shasta.tif").getAbsolutePath());
5555

5656
// create a raster layer

src/main/java/com/esri/samples/raster/stretch_renderer/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ in dark images.</p>
1212

1313
<h2>How it works</h2>
1414

15-
<p>To apply a `StretchRenderer` to a `RasterLayer`:</p>
15+
<p>To apply a <code>StretchRenderer</code> to a <code>RasterLayer</code>:</p>
1616
<ol>
17-
<li>Create a `Raster` from a raster file</li>
18-
<li>Create a `RasterLayer` from the raster</li>
19-
<li>Create a `Basemap` from the raster layer and set it to the map</li>
20-
<li>Create a `StretchRenderer`, specifying the stretch parameters and other properties</li>
21-
<li>Set the renderer on the raster layer with `rasterLayer.setRenderer(renderer)`</li>
17+
<li>Create a <code>Raster</code> from a raster file</li>
18+
<li>Create a <code>RasterLayer</code> from the raster</li>
19+
<li>Create a <code>Basemap</code> from the raster layer and set it to the map</li>
20+
<li>Create a <code>StretchRenderer</code>, specifying the stretch parameters and other properties</li>
21+
<li>Set the renderer on the raster layer with <code>rasterLayer.setRenderer(renderer)</code></li>
2222
</ol>
2323

2424
<h2>Features</h2>

src/main/java/com/esri/samples/raster/stretch_renderer/StretchRendererController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public class StretchRendererController {
4141

4242
public void initialize() {
4343

44-
// create rasters
44+
// create raster
4545
Raster raster = new Raster(new File("./samples-data/raster/ShastaBW.tif").getAbsolutePath());
4646

4747
// create a raster layer

0 commit comments

Comments
 (0)