diff --git a/dependencies/mapbox-sdk-cs b/dependencies/mapbox-sdk-cs index e7cec0185..558cb770a 160000 --- a/dependencies/mapbox-sdk-cs +++ b/dependencies/mapbox-sdk-cs @@ -1 +1 @@ -Subproject commit e7cec018502fe90ecced48dee846e99e2798523f +Subproject commit 558cb770ade50ff737bf4d6001b88af6e68578ba diff --git a/sdkproject/Assets/Mapbox/Examples/Playground/Scripts/RasterTileExample.cs b/sdkproject/Assets/Mapbox/Examples/Playground/Scripts/RasterTileExample.cs index 5c7c5a9c7..c08d5aa96 100644 --- a/sdkproject/Assets/Mapbox/Examples/Playground/Scripts/RasterTileExample.cs +++ b/sdkproject/Assets/Mapbox/Examples/Playground/Scripts/RasterTileExample.cs @@ -77,6 +77,7 @@ void Start() _map.Center = _startLoc; _map.Zoom = (int)_zoomSlider.value; _map.Subscribe(this); + _map.Update(); } /// @@ -87,6 +88,7 @@ void Start() void SearchLocation_OnGeocoderResponse(object sender, EventArgs e) { _map.Center = _searchLocation.Coordinate; + _map.Update(); } /// @@ -96,6 +98,7 @@ void SearchLocation_OnGeocoderResponse(object sender, EventArgs e) void AdjustZoom(float value) { _map.Zoom = (int)_zoomSlider.value; + _map.Update(); } /// @@ -106,6 +109,7 @@ void ToggleDropdownStyles(int target) { _mapstyle = target; _map.MapId = _mapboxStyles[target]; + _map.Update(); } /// diff --git a/sdkproject/Assets/Mapbox/Examples/Playground/Scripts/VectorTileExample.cs b/sdkproject/Assets/Mapbox/Examples/Playground/Scripts/VectorTileExample.cs index 6a8e7f6ee..a69241de7 100644 --- a/sdkproject/Assets/Mapbox/Examples/Playground/Scripts/VectorTileExample.cs +++ b/sdkproject/Assets/Mapbox/Examples/Playground/Scripts/VectorTileExample.cs @@ -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(); } /// @@ -70,6 +71,7 @@ void Redraw() //zoom in to get results for consecutive searches _map.Center = _searchLocation.Coordinate; + _map.Update(); } /// diff --git a/sdkproject/Assets/Mapbox/Examples/Voxels/Scripts/VoxelTile.cs b/sdkproject/Assets/Mapbox/Examples/Voxels/Scripts/VoxelTile.cs index 94df762e3..3ad580043 100644 --- a/sdkproject/Assets/Mapbox/Examples/Voxels/Scripts/VoxelTile.cs +++ b/sdkproject/Assets/Mapbox/Examples/Voxels/Scripts/VoxelTile.cs @@ -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)