Skip to content

Commit c268409

Browse files
committed
Merge commit 'a68132d9fe204add4a71be77b87db1eafe9a9109' into updated-manual-sync
* commit 'a68132d9fe204add4a71be77b87db1eafe9a9109': Disable InitializeOnStart when `InitializeWithLocationProvider` is used. (#656) Disable buildingsWithUniqueIds setting for MapboxStreets data source. (#655) Fix satellite imagery on roof not working. (#638) Add camera table top ar (#614) [publish docs] (#652) Ui fixes (#643) add feature collections and kdtree collection (#565) Playmode tests (#628) Collider Dropdown in Abstract Map for adding colliders on top of extruded geometry (#637) Fix range height extrusion (#613) # Conflicts: # sdkproject/ProjectSettings/EditorBuildSettings.asset
2 parents 46708ca + a68132d commit c268409

File tree

145 files changed

+3823
-877
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

145 files changed

+3823
-877
lines changed

documentation/docs/05-changelog.md

Lines changed: 35 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,46 @@
11
## CHANGELOG
2+
### v.1.4.1
3+
*??/??/2018*
4+
5+
##### New Features
6+
- Add two new modules, KdTreeCollection and AddToCollection Gameobject modifier.
7+
- Add Collider option for vector features.
8+
- Add scale factor for extrusion value derived from feature property.
9+
- Add camera script with zoom & pan support for TabletopAR scene.
10+
11+
##### Bug Fixes
12+
- Remove `buildingsWithUniqueIds` setting for `Mapbox Streets` data source.
13+
- Change `Style Name` to `Data Source`
14+
- Fix to make filter values case insensitive.
15+
- Fix issue where position vector features was not being set.
16+
- Fix `Range Property` extrusion option for vector features.
17+
- Select newly created layer visualizer.
18+
- Fix typo in colorPalette.
19+
- Add defaults for all sublayer properties to not carry over any options from the previous layer.
20+
- Don't allow empty names for layer visualizers.
21+
- Fix foldouts not retaining states between play mode & editor.
22+
- Add missing tooltips.
23+
- Fix issue with Satellite TextureType.
24+
- Added a check to prevent NRE on tile update because map was not initialized.
25+
- Added method to disable `InitializeOnStart` in the `Initialize With Location Provider` script.
226

327
### v.1.4.0
428
*03/20/2018*
529

630
#####
7-
- Drag and drop prefabs for most common use cases.
31+
- Drag and drop prefabs for most common use cases.
832
- New Abstract Map UI
9-
- Style development - colorization and atlas template generator
33+
- Style development - colorization and atlas template generator
1034
- Use texture atlas for building geometries.
11-
- Merge buildings with unique ids using the experimental 3D buildings tileset.
35+
- Merge buildings with unique ids using the experimental 3D buildings tileset.
1236
- Added a API call on AbstractMap to query height at a certain latitude longitude.
1337
- Included EditorConfig file to enforce coding style
1438
- Integration of previously seperate AR support https://github.com/mapbox/mapbox-unity-sdk/pull/544
1539

1640
### v.1.3.0
1741
*12/18/2017*
1842

19-
##### Upgrade Instructions
43+
##### Upgrade Instructions
2044
- As always, if you already have a project with a previous version of the SDK, please remove older versions before installing this new one!
2145
- `FeatureBehaviour` is no longer added to feature gameobjects by default. Use a `FeatureBehaviourModifier` to add this component (optimization).
2246
- `TextureModifier` is obsolete. Please use `MaterialModifier`.
@@ -31,7 +55,7 @@
3155

3256
##### New Features
3357
- Added convenience methods to `AbstractMap` to convert between Lat/Lon ↔ Vector3. This also works for maps that have been translated, rotated, or scaled! #387
34-
- Added tile error exception events that you can hook into to know when specific tiles fail to load. We provide an example `TileErrorHandler` object that logs these to console.
58+
- Added tile error exception events that you can hook into to know when specific tiles fail to load. We provide an example `TileErrorHandler` object that logs these to console.
3559
- Added C# wrapper for Mapbox Token API (to validate tokens).
3660
- Added transparency shader for raster tiles—this enables you to convert black to alpha from Mapbox studio styles (to render just road labels, for example).
3761
- Added new `LoftModifier`—use this to make complex geometry from line features.
@@ -43,7 +67,7 @@
4367
##### Bug Fixes
4468
- It should now be safe to nest the Mapbox folder (SDK) in your own projects.
4569
- You can now properly change/load scenes at runtime. #381
46-
- Fixed token validation issues (validate token when initializing `MapboxAccess`). #430
70+
- Fixed token validation issues (validate token when initializing `MapboxAccess`). #430
4771
- Custom inspectors now properly serialize assets assigned via built-in object browser.
4872
- Fix for certain tile providers not updating properly when re-initializing a map.
4973
- Fixed issue where clipped features would result in several new features. #398
@@ -67,7 +91,7 @@
6791
- Array support to mock a specific route (`LocationArrayEditorLocationProvider`).
6892
- Transform support on `EditorLocationProvider` to create simple offsets.
6993
- Use Unity Remote app to send location updates directly to the Unity editor from your device!
70-
- `DynamicZoom` example has been improved, see new `Zoomable` map example.
94+
- `DynamicZoom` example has been improved, see new `Zoomable` map example.
7195
- Added string to lat/lon conversion method.
7296
- Various nodes in the map factory framework now have public fields to support run-time styling or modification before map generation (based on settings, for example).
7397
- Maps now support float values for zoom level—you can use this to inform camera controllers, for example.
@@ -214,7 +238,7 @@
214238
- Elevation textures are no longer held in memory and height data parsing and access is much faster
215239
- Added new `FlatTerrainFactory` that is optimized specifically for flat maps
216240
- Tiles can now be cached in memory—configure the cache size in `MapboxAccess.cs` (default size is 500)
217-
- Slippy maps now dispose tiles that determined to be "out of range"
241+
- Slippy maps now dispose tiles that determined to be "out of range"
218242
- Tiles that are out of range before completion are properly cancelled
219243
- Terrain generation in Unity 5.5+ should be much faster and allocate less memory
220244

@@ -256,12 +280,12 @@
256280
- Fixed issue where visualizers for `MeshFactories` were not being serialized properly
257281
- Fixed null reference exception when creating a new `MeshFactory`
258282

259-
### v0.5.0
283+
### v0.5.0
260284

261285
*04/26/2017*
262286

263-
- Added support for UWP
264-
- Share your Hololens creations with us!
287+
- Added support for UWP
288+
- Share your Hololens creations with us!
265289
- Fixed precision issue with tile conversions
266290
- Replaced `Geocoordinate` with `Vector2d`
267291
- Mapbox API Token is now stored in MapboxAccess.txt

sdkproject/Assets/Mapbox/Core/cheap-ruler-cs/Tests/Editor/CheapRulerCsTests.cs renamed to sdkproject/Assets/Mapbox/Core/cheap-ruler-cs/Tests/Editor/MapboxUnitTests_CheapRulerCs.cs

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//-----------------------------------------------------------------------
1+
//-----------------------------------------------------------------------
22
// <copyright file="FileSourceTest.cs" company="Mapbox">
33
// Copyright (c) 2016 Mapbox. All rights reserved.
44
// </copyright>
@@ -10,20 +10,14 @@ namespace Mapbox.CheapRulerCs.UnitTest
1010
{
1111

1212

13-
using Mapbox.Platform;
1413
using NUnit.Framework;
1514
using System.Collections.Generic;
16-
using System.Globalization;
17-
using System.IO;
18-
using System.Text;
19-
using System;
20-
using System.Linq;
2115
using UnityEngine;
2216
using Mapbox.CheapRulerCs;
2317
using Mapbox.Json.Linq;
2418

2519
[TestFixture]
26-
internal class ProbeExtractorCsTest
20+
internal class CheapRulerCsTest
2721
{
2822

2923

@@ -67,11 +61,8 @@ public void DistanceInMiles()
6761

6862
private List<line> loadFixtures()
6963
{
70-
string fixturePath = Application.dataPath + "/Mapbox/Core/cheap-ruler-cs/Tests/Editor/lines.json";
71-
string fixtureAsText;
72-
using (TextReader tw = new StreamReader(fixturePath, Encoding.UTF8)) { fixtureAsText = tw.ReadToEnd(); }
73-
74-
var json = JArray.Parse(fixtureAsText);
64+
TextAsset fixturesAsset = Resources.Load<TextAsset>("ChearRulerCs_fixtures");
65+
var json = JArray.Parse(fixturesAsset.text);
7566
List<line> fixtures = new List<line>();
7667

7768
foreach (var line in json)
@@ -91,4 +82,4 @@ private List<line> loadFixtures()
9182

9283

9384
}
94-
}
85+
}

sdkproject/Assets/Mapbox/Core/cheap-ruler-cs/Tests/Editor/CheapRulerCsTests.cs.meta renamed to sdkproject/Assets/Mapbox/Core/cheap-ruler-cs/Tests/Editor/MapboxUnitTests_CheapRulerCs.cs.meta

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdkproject/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Directions.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,15 @@ public IAsyncRequest Query(DirectionResource direction, Action<DirectionsRespons
5555
/// </summary>
5656
/// <param name="str">JSON String.</param>
5757
/// <returns>A <see cref="DirectionsResponse"/>.</returns>
58-
internal DirectionsResponse Deserialize(string str)
58+
public DirectionsResponse Deserialize(string str)
5959
{
6060
return JsonConvert.DeserializeObject<DirectionsResponse>(str, JsonConverters.Converters);
6161
}
62+
63+
public string Serialize(DirectionsResponse response)
64+
{
65+
return JsonConvert.SerializeObject(response, JsonConverters.Converters);
66+
}
67+
6268
}
6369
}

sdkproject/Assets/Mapbox/Core/mapbox-sdk-cs/Geocoding/Geocoder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public IAsyncRequest Geocode<T>(GeocodeResource<T> geocode, Action<ForwardGeocod
7979
/// <param name="str">JSON String.</param>
8080
/// <returns>A <see cref="GeocodeResponse"/>.</returns>
8181
/// <typeparam name="T">Forward or reverse geocode. </typeparam>
82-
internal T Deserialize<T>(string str)
82+
public T Deserialize<T>(string str)
8383
{
8484
return JsonConvert.DeserializeObject<T>(str, JsonConverters.Converters);
8585
}

sdkproject/Assets/Mapbox/Core/mapbox-sdk-cs/Map/TileResource.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace Mapbox.Map
99
using System;
1010
using Mapbox.Unity.Telemetry;
1111

12-
internal sealed class TileResource : IResource
12+
public sealed class TileResource : IResource
1313
{
1414
readonly string _query;
1515

@@ -65,7 +65,8 @@ public string GetUrl()
6565
uriBuilder.Query = TelemetryFactory.EventQuery;
6666
}
6767

68-
return uriBuilder.ToString();
68+
//return uriBuilder.ToString();
69+
return uriBuilder.Uri.ToString();
6970
}
7071
}
7172
}

sdkproject/Assets/Mapbox/Core/mapbox-sdk-cs/Tests/UnitTests/Editor/DirectionsTest.cs

Lines changed: 0 additions & 64 deletions
This file was deleted.

0 commit comments

Comments
 (0)