Skip to content

Commit bb376c7

Browse files
committed
Merge commit '9778033c0d9549b8cc1a34fcc79501fbb89a208a' into runtime-editing-dev
* commit '9778033c0d9549b8cc1a34fcc79501fbb89a208a': Release/v1.4.1 (#682) (#683) Release/v1.4.1 (#682) (#684) Updated manual synchornization example scene (#636) 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) # Conflicts: # sdkproject/Assets/Mapbox/Unity/Map/RangeTileProvider.cs
2 parents c6cc787 + 9778033 commit bb376c7

File tree

168 files changed

+5563
-6220
lines changed

Some content is hidden

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

168 files changed

+5563
-6220
lines changed

LICENSE

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,31 @@ Unless required by applicable law or agreed to in writing, software
9292
distributed under the License is distributed on an "AS IS" BASIS,
9393
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9494
See the License for the specific language governing permissions and
95-
limitations under the License.
95+
limitations under the License.
96+
97+
============================================================================
98+
99+
Contains a portion of kd-sharp for C#
100+
https://github.com/acgessler/kd-sharp
101+
102+
The MIT License (MIT)
103+
104+
Copyright (c) 2013, Original Committers
105+
106+
Permission is hereby granted, free of charge, to any person obtaining a copy
107+
of this software and associated documentation files (the "Software"), to deal
108+
in the Software without restriction, including without limitation the rights
109+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
110+
copies of the Software, and to permit persons to whom the Software is
111+
furnished to do so, subject to the following conditions:
112+
113+
The above copyright notice and this permission notice shall be included in
114+
all copies or substantial portions of the Software.
115+
116+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
117+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
118+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
119+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
120+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
121+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
122+
THE SOFTWARE.

documentation/docs/05-changelog.md

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,29 @@
11
## CHANGELOG
2-
### v.1.4.0
3-
*??/??/2018*
2+
### v.1.4.1
3+
*04/17/2018*
44

5-
#####
6-
- Fix `Range Property` extrusion option for vector features.
5+
##### New Features
6+
- Add two new modules, KdTreeCollection and AddToCollection Gameobject modifier.
7+
- Add Collider option for vector features.
78
- 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.
26+
- Fix loop counter in `SpawnInsidePrefabModifier` which was causing an infinite loop.
827

928
### v.1.4.0
1029
*03/20/2018*

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)