Topic: Elevation Tiles
Hi,
Im modify OnlineMapsTiledElevationManager to read elevation tiles only from zoom 13 and I load elevation tiles from Streaming Assets for a specific area.
I notice that while I zoom out, the map using the following code, is not zooming out "smooth" enough. It gets a little bit laggy.
I use this code for Zoom out:
public void ZoomIn() {
if (!isAnim) {
startZoom = OnlineMaps.instance.zoom;
targetZoom = OnlineMaps.instance.zoom + 1;
progress = 0;
isAnim = true;
}
}
// Smooth Zoom
void Update() {
if (progress <= 1 && isAnim) {
progress += Time.deltaTime / duration;
if (progress >= 1) {
progress = 1;
isAnim = false;
}
float zoom = Mathf.Lerp(startZoom, targetZoom, progress);
OnlineMaps.instance.floatZoom = zoom;
OnlineMaps.instance.Redraw();
}
}
I also noticed that on a windows 10 and above the 3D elevation is not visible on map, its flat. It loads tiles, I can read elevation values for a specific coordinates. On Mac OSX standalone the 3D elevation is visible. This issue happening only on windows 10 and above.