Skip to content

Commit cbab27e

Browse files
authored
Merge pull request #153 from Esri/mark/RotateVectorBasemap
Change basemap on rotation sample to use a vector basemap
2 parents 0869a4a + 76e0d6e commit cbab27e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed
-211 KB
Loading

src/main/java/com/esri/samples/mapview/map_rotation/MapRotationSample.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ public void start(Stage stage) throws Exception {
5555
// create a slider with a range of 360 units and start it half way
5656
Slider slider = new Slider(-180.0, 180.0, 0.0);
5757
slider.setMaxWidth(240.0);
58+
slider.setShowTickLabels(true);
59+
slider.setShowTickMarks(true);
60+
slider.setMajorTickUnit(90);
5861
slider.setDisable(true);
5962

6063
// listen for the value in the slider to change
@@ -64,7 +67,7 @@ public void start(Stage stage) throws Exception {
6467
});
6568

6669
// create a ArcGISMap with topographic basemap
67-
ArcGISMap map = new ArcGISMap(Basemap.createTopographic());
70+
ArcGISMap map = new ArcGISMap(Basemap.createStreetsVector());
6871

6972
// enable slider when map view is done loading
7073
map.addDoneLoadingListener(() -> slider.setDisable(false));

0 commit comments

Comments
 (0)