Skip to content

Commit 2a24756

Browse files
authored
Merge pull request #1282 from mapbox/release/v2.0.1
Release/v2.0.1 - merge before creating a release candidate.
2 parents a255633 + ddea227 commit 2a24756

File tree

263 files changed

+14938
-6389
lines changed

Some content is hidden

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

263 files changed

+14938
-6389
lines changed

appveyor.yml

+1-6
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,10 @@ clone_depth: 5
1414

1515
environment:
1616
GITHUB_TOKEN:
17-
secure: lJJOC3O25ATwK7jNt2TeYC9LexbMpef6ZSJDS8J4OFYABWt53IDe8BPcBNuELiyJ
17+
secure: vgXVXTZeGy16BWD/1TANPZ4dFW12vAjv1NPqPI3srdyUZcUbsyVNLFQ5uvTglg1J
1818
MAPBOX_ACCESS_TOKEN:
1919
secure: dMZloaDRX0kslhjJRbDySkawDtY+1/42ke/v1B2LEQjSnvSp4RWTEkrxuyca3B4Y+Tw4dGg5KI9mL2WFvMQyI49UuIRoVACbIyr6s5pvn4bme5fKhbs/XxpecpzYOVSt
2020

21-
install:
22-
- update-mapbox-unity-sdk-core.bat
23-
2421
build_script:
2522
#let UnityPackager finish sucessfully, even after encounting errors, eg missing '.meta' files
2623
- SET UNITYPACKAGER_RAISE_ERROR_ON_FAILURE=0
@@ -33,7 +30,5 @@ build_script:
3330
- scriptcs scripts\build.csx
3431

3532
artifacts:
36-
- path: 'mapbox-unity-sdk_*.unitypackage'
37-
name: UnityPackage
3833
- path: documentation\docfx_project\_site
3934
name: site

documentation/docfx_project/docfx.json

+18-18
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"metadata": [
3-
{ //mapbox-sdk-cs source
4-
"src": [
5-
{
6-
"src": "../../sdkproject/Assets/Mapbox/Core/mapbox-sdk-cs",
7-
"files": ["**/**.cs"]
8-
}
9-
],
10-
"dest": "api/mapbox-sdk-cs"
11-
},
3+
// { //mapbox-sdk-cs source
4+
// "src": [
5+
// {
6+
// "src": "../../sdkproject/Assets/Mapbox/Core/mapbox-sdk-cs",
7+
// "files": ["**/**.cs"]
8+
// }
9+
// ],
10+
// "dest": "api/mapbox-sdk-cs"
11+
// },
1212
{ //Unity specific source
1313
"src": [
1414
{
@@ -18,15 +18,15 @@
1818
],
1919
"dest": "api/unity"
2020
},
21-
{ // vector-tile-cs source
22-
"src": [
23-
{
24-
"src": "../../sdkproject/Assets/Mapbox/Core/PlugIns/Mapbox/vector-tile-cs",
25-
"files": ["**/**.cs"]
26-
}
27-
],
28-
"dest": "api/vector-tile-cs"
29-
}
21+
// { // vector-tile-cs source
22+
// "src": [
23+
// {
24+
// "src": "../../sdkproject/Assets/Mapbox/Core/PlugIns/Mapbox/vector-tile-cs",
25+
// "files": ["**/**.cs"]
26+
// }
27+
// ],
28+
// "dest": "api/vector-tile-cs"
29+
// }
3030
],
3131
"build": {
3232
"globalMetadata": {

documentation/docs/05-changelog.md

+15-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
## CHANGELOG
2+
### v.2.0.1
3+
02/11/2019
4+
##### New Features
5+
- *Editor Preview* - Adds ability to preview maps in editor at design time. AbstractMap now has an `Enable Preview` toggle which displays the map with all current settings, and provides ability to modify settings while viewing the map outside of Play mode.
6+
##### Improvements
7+
- Improves line mesh generation, adds options for join and cap types. Users have greater control over quality and styles of line meshes.
8+
- Improves terrain tile loading times by optimizing terrain pipeline.
9+
- Remove UV Modifier class and merge the functionality into polygon mesh modifier.
10+
- Optimized Vector feature textures, resulting in smaller file sizes.
11+
#### Bug Fixes
12+
- Fixes a bug with UV calculation which caused textures to be stretched instead of tiled.
13+
- Fixes a bug where Vector feature layers that used the same texture style would not preserve layer-specific style parameter settings.
14+
- Fixes a bug where decoration spawning (SpawnInsideModifier) placed objects at wrong locations on recycled tiles.
15+
- Fixes a bug where point placement didn't pate point location properly when zoom level changes.
216

317
### v.2.0.0
418
10/15/2018
@@ -292,7 +306,7 @@
292306
- Ensure your `MapImageFactories` have the expected `Map Id`! We've updated the way Ids are serialized, and your old Ids may have been lost--sorry!
293307

294308
##### Memory/Performance
295-
- Added support for style-optimized vector tiles! [Read more here.](https://www.mapbox.com/api-documentation/#retrieve-tiles)
309+
- Added support for style-optimized vector tiles! [Read more here.](https://www.mapbox.com/api-documentation/maps/#request-style-optimized-tiles)
296310
- You will need to use the new `StyleOptimizedVectorTileFactory`.
297311
- This can result in far less data transfer/data processing.
298312
- Replaced Triangle.NET with `Earcut` which results if much faster geometry construction.

scope.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
The goal of the Unity API is to make it easy for game developers to build beautiful location based games. The API should be flexible enough to allow creative developers to use location data in novel ways, but easy enough to prototype a game environment with a map in a couple minutes.
44

5-
The API will include a core C# library for requesting data from Mapbox APIS, and then a higher-level set of components designed to work specifically with Unity.
5+
The API will include a core C# library for requesting data from Mapbox APIS, and then a higher-level set of components designed to work specifically with Unity.
66

77
There are four parts to the Unity SDK: core API support, utilities, Unity components, and custom inspectors:
88

99
## Core API support
1010

11-
The Unity SDK will provide an interface to the following [Mapbox web services](https://www.mapbox.com/api-documentation/). I separated services into two priority levels. Priority level 1 is the base level of support we need to release the Unity SDK. Priority level 2 features are those that would be necessary to make the SDK feel complete and up to par with our SDKs on other platforms.
11+
The Unity SDK will provide an interface to the following [Mapbox web services](https://www.mapbox.com/api-documentation/). I separated services into two priority levels. Priority level 1 is the base level of support we need to release the Unity SDK. Priority level 2 features are those that would be necessary to make the SDK feel complete and up to par with our SDKs on other platforms.
1212

1313
### Vector tilesets
1414
_Priority level 1_
@@ -22,28 +22,28 @@ To support vector tileset resources, the SDK will need to:
2222

2323
First version of vector tile support can leave the rendering implementation to the user of the SDK.
2424

25-
Documentation: https://www.mapbox.com/api-documentation/#retrieve-tiles
25+
Documentation: https://www.mapbox.com/api-documentation/maps/#retrieve-tiles
2626

2727
### Raster tilesets
2828
_Priority level 2_
2929

3030
Much of the work we do to support vector tiles will be applicable to raster tiles. The main difference between vector tiles and raster tiles is that raster tiles would need to be used as textures. We could also add support for 3D terrain meshes based on raster elevation data.
3131

32-
Documentation: https://www.mapbox.com/api-documentation/#retrieve-tiles
32+
Documentation: https://www.mapbox.com/api-documentation/maps/#retrieve-tiles
3333

3434
### Static maps
3535
_Priority level 2_
3636

3737
Make it easy for a developer to request and apply a map texture of a fixed size to a game object.
3838

39-
Documentation: https://www.mapbox.com/api-documentation/#static
39+
Documentation: https://www.mapbox.com/api-documentation/maps/#static
4040

4141
### Datasets
4242
_Priority level 2_
4343

4444
Provide methods for both requesting data from a dataset and for posting changes to a dataset based on game objects.
4545

46-
Documentation: https://www.mapbox.com/api-documentation/#datasets
46+
Documentation: https://www.mapbox.com/api-documentation/maps/#datasets
4747

4848
### Geocoding
4949
_Priority level 1_
@@ -52,7 +52,7 @@ Provide methods for requesting and storing forward geocode and reverse geocode r
5252

5353
Will use callback functions like `GetForwardGeocode(GeocoderOptions, callback())` where `GeocoderOptions` is an object that includes the geocode query and all options, and callback is a function that receives the geocode response object. The response object can be used to do things like position points on the map or fill a UI template with search results.
5454

55-
Documentation: https://www.mapbox.com/api-documentation/#geocoding
55+
Documentation: https://www.mapbox.com/api-documentation/search/#geocoding
5656

5757
### Directions
5858
_Priority level 1_
@@ -61,14 +61,14 @@ Provide a method for requesting and storing directions results. Support all opti
6161

6262
Will use callback functions like `GetDirections(DirectionsOptions, callback())` where `DirectionsOptions` is an object that includes the directions query and all options, and callback is a function that receives the directions response object. The response object can then be used to do things like build a path on the map or to fill a UI template with instructions.
6363

64-
Documentation: https://www.mapbox.com/api-documentation/#directions
64+
Documentation: https://www.mapbox.com/api-documentation/navigation/#directions
6565

6666
### Map matching
6767
_Priority level 2_
6868

69-
Provide a method for sending user location and getting a match back. Support all optional parameters. Useful for snapping user position to road path.
69+
Provide a method for sending user location and getting a match back. Support all optional parameters. Useful for snapping user position to road path.
7070

71-
Documentation: https://www.mapbox.com/api-documentation/#map-matching
71+
Documentation: https://www.mapbox.com/api-documentation/navigation/#map-matching
7272

7373
## Utilities
7474
_Priority level 1_

scripts/build.csx

+5-5
Original file line numberDiff line numberDiff line change
@@ -240,11 +240,11 @@ if (!publishDocs) {
240240

241241

242242
//---------- unitypackage
243-
Console.WriteLine("creating unitypackage ...");
244-
if (!RunCommand(@"UnityPackager.exe unitypackage.config sdkproject\Assets\ mapbox-unity-sdk_LATEST.unitypackage", logOnErrorOnly: true)) {
245-
Console.Error.WriteLine("could not create unitypackage");
246-
Environment.Exit(1);
247-
}
243+
//Console.WriteLine("creating unitypackage ...");
244+
//if (!RunCommand(@"UnityPackager.exe unitypackage.config sdkproject\Assets\ mapbox-unity-sdk_LATEST.unitypackage", logOnErrorOnly: true)) {
245+
// Console.Error.WriteLine("could not create unitypackage");
246+
// Environment.Exit(1);
247+
//}
248248

249249

250250
//---------- finish
Binary file not shown.
+15-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.

sdkproject/Assets/Mapbox/Core/Plugins/Android/libcore-release.aar.meta

+31
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.

sdkproject/Assets/Mapbox/Core/Plugins/Android/libtelemetry-full-release.aar.meta

+31
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.

sdkproject/Assets/Mapbox/Core/Plugins/iOS/MapboxMobileEvents/include.meta

+3-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdkproject/Assets/Mapbox/Core/Plugins/iOS/MapboxMobileEvents/include/MapboxMobileEvents.meta

+3-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)