POST
|
Hello! I have loaded a map like this: MapView mapView = new MapView();
ArcGISMap map = new ArcGISMap(SpatialReferences.getWebMercator());
map.setBasemap(Basemap.createImagery());
map.setMaxScale(...);
mapView.setMap(map); Now, with this mapView object, I would like to rotate the map using the mouse (dragging the mouse). (note: I don't want to rotate the map itself, just the 'view' or camera, if you will). I managed to achieve it by doing this when I drag the mouse: mapView.setViewpointRotationAsync(mousePosDiffX); (note: this method returns a ListenableFuture<Boolean> to tell when it is done.) However, it is very laggy. My first solution would be to avoid calling to much setViewpointRotationAsync by checking the CompletableFuture and call it only when the rotation is it complete using some kind of mutex/lock.. but it is not very successful. Any help appreciated! Thanks!
... View more
01-18-2021
05:51 AM
|
0
|
2
|
112
|
POST
|
Hi Mark, Thank you for your reply. You are describing very well my problem. That's exactly it. For this map, I don't have a dataset for a larger scale (i.e. zoomed out), so I did what you suggested. I've set a scale limits as such: groupLayer.setMaxScale(1001);
groupLayer.setMinScale(10000000); [side question: what does these numbers means exactly, do you know? I couldn't find the meaning of the double values in these scale methods, please?] So, with the scale limits, the titles are not visible until I zoom-in now. Which is a bit more acceptable, performance wise. However, the downside is when zoom-ed out, the user have no clue that there are tiles there.. until you zoom-in. I would be very interested to know more about the pre-processing method you are suggesting, please. Many thanks again Mark!
... View more
12-14-2020
11:04 AM
|
0
|
0
|
157
|
POST
|
Hello, I am loading a A.TOC (CADRG) file. To be more precise, I am reading the A.TOC and it points me to 412 RPF files located in a sub-folder. I load each of these RPF files in a RasterLayer. GroupLayer groupLayer = new GroupLayer();
for(File frame : frames) {
RasterLayer r = new RasterLayer(new Raster(frame.path));
groupLayer.add(r);
} When I display this groupLayer on the map, it is very slow when all the 412 layers are visible on the map. It is very laggy and struggle to manipulate (zoom, move) the map. As I zoom into the tiles so that some tiles are out of the sight, it gets a bit better. Is there a way to improve this performance issue? Thanks in advance! JC
... View more
12-11-2020
10:41 AM
|
0
|
3
|
191
|
Online Status |
Offline
|
Date Last Visited |
01-25-2021
02:58 PM
|