Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ void Start()
_map.Center = _startLoc;
_map.Zoom = (int)_zoomSlider.value;
_map.Subscribe(this);
_map.Update();
}

/// <summary>
Expand All @@ -87,6 +88,7 @@ void Start()
void SearchLocation_OnGeocoderResponse(object sender, EventArgs e)
{
_map.Center = _searchLocation.Coordinate;
_map.Update();
}

/// <summary>
Expand All @@ -96,6 +98,7 @@ void SearchLocation_OnGeocoderResponse(object sender, EventArgs e)
void AdjustZoom(float value)
{
_map.Zoom = (int)_zoomSlider.value;
_map.Update();
}

/// <summary>
Expand All @@ -106,6 +109,7 @@ void ToggleDropdownStyles(int target)
{
_mapstyle = target;
_map.MapId = _mapboxStyles[target];
_map.Update();
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ void Start()
// This marks us an an observer to map.
// We will get each tile in OnNext(VectorTile tile) as they become available.
_map.Subscribe(this);
_map.Update();
}

/// <summary>
Expand All @@ -70,6 +71,7 @@ void Redraw()

//zoom in to get results for consecutive searches
_map.Center = _searchLocation.Coordinate;
_map.Update();
}

/// <summary>
Expand Down
2 changes: 2 additions & 0 deletions sdkproject/Assets/Mapbox/Examples/Voxels/Scripts/VoxelTile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ void FetchWorldData(Vector2d coordinates)
bounds.Center = coordinates;
_raster.SetVector2dBoundsZoom(bounds, _zoom);
_elevation.SetVector2dBoundsZoom(bounds, _zoom);
_raster.Update();
_elevation.Update();
}

public void OnNext(RasterTile tile)
Expand Down