diff --git a/documentation/docs/05-changelog.md b/documentation/docs/05-changelog.md index e8c4de1ba..54f461e6f 100644 --- a/documentation/docs/05-changelog.md +++ b/documentation/docs/05-changelog.md @@ -1,15 +1,27 @@ ## CHANGELOG ### v.1.4.6 -10/??/2018 +10/15/2018 +##### New Features +- *Runtime editing of map features* - Map elements like Imagery, Terrain, Feature Properties can now be updated during runtime, using AbstractMap UI in the Editor , or by using the API methods. +- *Map API’s* - Maps SDK for Unity now has API methods to build and edit maps entirely using scripts. ##### Improvements -- Terrain mesh is generated as flat on height data errors +- Improves fallback for terrain tiles with missing or no data. Image will be now rendered on flat tiles instead of blank tiles. +- Improves terrain height query by using local position/rotation/scale of a tile. Use `QueryElevationInUnityUnitsAt` or `QueryElevationInMetersAt` API methods to query height. +- Terrain module “Sample Count” property changed to a slider. +- Improves tile loading and recycling performance. ##### Bug Fixes -- Fix issue with building side wall modifier where it miscalculated the floor heights causing overlaping polygons/floors -- Fix an issue where streets tileset wasn't creating buildings on tile edges -- Fix QueryHeight method to take tile local position/rotation/scale into account -- Fix an isse with terrain factory where it didn't respect "none" terrain option. -- Fix a bug where a map editor script not working on Unity3d 2018.2 +- Fixes issue where Terrain was not turned off with `None` option. +- Fixes issue where Node Editor script was throwing a compilation error due to deprecated API in Unity 2018.2 +- Fixes issue where SnapToZero moved the map for each new tile loaded instead of only using the first one. +- Fixes issue with the height modifier where floor height calculations were wrong causing overlapping floors. +- Fixes issue where dispose buffer setting was being ignored by `RangeAroundTransform` extent type. +- Fixes builds for UWP/ Hololens environments. +- Fixes issue where ARTableTop map would not snap to the detected plane on zooming in/out. +- Fixes issue where `BuildingsWithUniqueIds` setting was getting applied incorrectly, resulting in missing buildings. + +##### Breaking Changes +- Any `Feature` layers under `Map Layers` using a `Custom` style type will need to be re-assigned through the AbstractMap UI. This change was necessary to persist custom style options when switching between different styles. ### v.1.4.5 08/20/2018 diff --git a/sdkproject/Assets/Mapbox/Prefabs/CitySimulatorMap.prefab b/sdkproject/Assets/Mapbox/Prefabs/CitySimulatorMap.prefab index 23694af56..649938406 100644 --- a/sdkproject/Assets/Mapbox/Prefabs/CitySimulatorMap.prefab +++ b/sdkproject/Assets/Mapbox/Prefabs/CitySimulatorMap.prefab @@ -51,26 +51,26 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: cd961b1c9541a4cee99686069ecce852, type: 3} m_Name: m_EditorClassIdentifier: - _initializeOnStart: 1 _options: locationOptions: latitudeLongitude: 37.784179, -122.401583 zoom: 16 extentOptions: extentType: 1 - cameraBoundsOptions: - camera: {fileID: 0} - visibleBuffer: 0 - disposeBuffer: 0 - rangeAroundCenterOptions: - west: 1 - north: 1 - east: 1 - south: 1 - rangeAroundTransformOptions: - targetTransform: {fileID: 0} - visibleBuffer: 0 - disposeBuffer: 0 + defaultExtents: + cameraBoundsOptions: + camera: {fileID: 0} + visibleBuffer: 0 + disposeBuffer: 0 + rangeAroundCenterOptions: + west: 1 + north: 1 + east: 1 + south: 1 + rangeAroundTransformOptions: + targetTransform: {fileID: 0} + visibleBuffer: 0 + disposeBuffer: 0 placementOptions: placementType: 1 snapMapToZero: 1 @@ -79,6 +79,7 @@ MonoBehaviour: unityTileSize: 100 loadingTexture: {fileID: 2800000, guid: e2896a92727704803a9c422b043eae89, type: 3} tileMaterial: {fileID: 2100000, guid: b9f23e9bce724fa4daac57ecded470b8, type: 2} + _initializeOnStart: 1 _imagery: _layerProperty: sourceType: 0 @@ -105,8 +106,9 @@ MonoBehaviour: UserName: elevationLayerType: 1 requiredOptions: - addCollider: 0 exaggerationFactor: 1 + colliderOptions: + addCollider: 0 modificationOptions: sampleCount: 10 useRelativeHeight: 0 @@ -171,7 +173,8 @@ MonoBehaviour: layerName: building snapToTerrain: 1 combineMeshes: 0 - lineWidth: 1 + lineGeometryOptions: + Width: 1 filterOptions: _selectedLayerName: building filters: [] @@ -202,6 +205,17 @@ MonoBehaviour: samplePalettes: 0 colorPalette: {fileID: 11400000, guid: ef118b5e263da4b1fa4327ca1d3e0c7b, type: 2} + customStyleOptions: + texturingType: 3 + materials: + - Materials: + - {fileID: 2100000, guid: a1aa333e18c0640d7b428eecff9c4af7, type: 2} + - Materials: + - {fileID: 2100000, guid: c0653693b48614a139a124871d499679, type: 2} + atlasInfo: {fileID: 11400000, guid: 414754d7155df47beb52ca117a774f21, + type: 2} + colorPalette: {fileID: 11400000, guid: 57bdfa37edf7a4f7f999d19443497554, + type: 2} performanceOptions: isEnabled: 1 entityPerCoroutine: 20 @@ -210,7 +224,7 @@ MonoBehaviour: moveFeaturePositionTo: 0 MeshModifiers: [] GoModifiers: [] - presetFeatureType: 4 + presetFeatureType: 0 _maskValue: 0 selectedTypes: - coreOptions: @@ -221,9 +235,10 @@ MonoBehaviour: layerName: road snapToTerrain: 1 combineMeshes: 0 - lineWidth: 3 + lineGeometryOptions: + Width: 1 filterOptions: - _selectedLayerName: + _selectedLayerName: road filters: [] combinerType: 0 extrusionOptions: @@ -238,7 +253,7 @@ MonoBehaviour: colliderOptions: colliderType: 0 materialOptions: - style: 0 + style: 3 texturingType: 0 materials: - Materials: @@ -251,15 +266,24 @@ MonoBehaviour: colorStyleColor: {r: 1, g: 1, b: 1, a: 1} samplePalettes: 0 colorPalette: {fileID: 0} + customStyleOptions: + texturingType: 0 + materials: + - Materials: + - {fileID: 2100000, guid: 5ac0ac96d738c0845b30185d2838f299, type: 2} + - Materials: + - {fileID: 2100000, guid: b00db1eb69ea64eb4adb30b2c0fb01cb, type: 2} + atlasInfo: {fileID: 0} + colorPalette: {fileID: 0} performanceOptions: isEnabled: 1 entityPerCoroutine: 20 - honorBuildingIdSetting: 1 + honorBuildingIdSetting: 0 buildingsWithUniqueIds: 0 moveFeaturePositionTo: 0 MeshModifiers: [] GoModifiers: [] - presetFeatureType: 4 + presetFeatureType: 1 _maskValue: 0 selectedTypes: locationPrefabList: [] diff --git a/sdkproject/Assets/Mapbox/Prefabs/IconicBuildingMap.prefab b/sdkproject/Assets/Mapbox/Prefabs/IconicBuildingMap.prefab index c6a50d651..5917450fb 100644 --- a/sdkproject/Assets/Mapbox/Prefabs/IconicBuildingMap.prefab +++ b/sdkproject/Assets/Mapbox/Prefabs/IconicBuildingMap.prefab @@ -51,26 +51,26 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: cd961b1c9541a4cee99686069ecce852, type: 3} m_Name: m_EditorClassIdentifier: - _initializeOnStart: 1 _options: locationOptions: latitudeLongitude: 37.79514, -122.402756 zoom: 16 extentOptions: extentType: 1 - cameraBoundsOptions: - camera: {fileID: 0} - visibleBuffer: 0 - disposeBuffer: 0 - rangeAroundCenterOptions: - west: 1 - north: 1 - east: 1 - south: 1 - rangeAroundTransformOptions: - targetTransform: {fileID: 0} - visibleBuffer: 0 - disposeBuffer: 0 + defaultExtents: + cameraBoundsOptions: + camera: {fileID: 0} + visibleBuffer: 0 + disposeBuffer: 0 + rangeAroundCenterOptions: + west: 1 + north: 1 + east: 1 + south: 1 + rangeAroundTransformOptions: + targetTransform: {fileID: 0} + visibleBuffer: 0 + disposeBuffer: 0 placementOptions: placementType: 1 snapMapToZero: 1 @@ -79,6 +79,7 @@ MonoBehaviour: unityTileSize: 100 loadingTexture: {fileID: 2800000, guid: e2896a92727704803a9c422b043eae89, type: 3} tileMaterial: {fileID: 2100000, guid: b9f23e9bce724fa4daac57ecded470b8, type: 2} + _initializeOnStart: 1 _imagery: _layerProperty: sourceType: 0 @@ -105,8 +106,9 @@ MonoBehaviour: UserName: elevationLayerType: 1 requiredOptions: - addCollider: 0 exaggerationFactor: 1 + colliderOptions: + addCollider: 0 modificationOptions: sampleCount: 10 useRelativeHeight: 0 @@ -171,7 +173,8 @@ MonoBehaviour: layerName: building snapToTerrain: 1 combineMeshes: 0 - lineWidth: 1 + lineGeometryOptions: + Width: 1 filterOptions: _selectedLayerName: building filters: [] @@ -202,6 +205,17 @@ MonoBehaviour: samplePalettes: 0 colorPalette: {fileID: 11400000, guid: 57bdfa37edf7a4f7f999d19443497554, type: 2} + customStyleOptions: + texturingType: 3 + materials: + - Materials: + - {fileID: 2100000, guid: a1aa333e18c0640d7b428eecff9c4af7, type: 2} + - Materials: + - {fileID: 2100000, guid: c0653693b48614a139a124871d499679, type: 2} + atlasInfo: {fileID: 11400000, guid: 414754d7155df47beb52ca117a774f21, + type: 2} + colorPalette: {fileID: 11400000, guid: 57bdfa37edf7a4f7f999d19443497554, + type: 2} performanceOptions: isEnabled: 1 entityPerCoroutine: 20 @@ -222,9 +236,10 @@ MonoBehaviour: layerName: road snapToTerrain: 1 combineMeshes: 0 - lineWidth: 3 + lineGeometryOptions: + Width: 1 filterOptions: - _selectedLayerName: + _selectedLayerName: road filters: [] combinerType: 0 extrusionOptions: @@ -239,7 +254,7 @@ MonoBehaviour: colliderOptions: colliderType: 0 materialOptions: - style: 0 + style: 3 texturingType: 0 materials: - Materials: @@ -252,15 +267,24 @@ MonoBehaviour: colorStyleColor: {r: 1, g: 1, b: 1, a: 1} samplePalettes: 0 colorPalette: {fileID: 0} + customStyleOptions: + texturingType: 0 + materials: + - Materials: + - {fileID: 2100000, guid: 8e8afdee0a225a84282f04f2fb89b8b6, type: 2} + - Materials: + - {fileID: 2100000, guid: b00db1eb69ea64eb4adb30b2c0fb01cb, type: 2} + atlasInfo: {fileID: 0} + colorPalette: {fileID: 0} performanceOptions: isEnabled: 1 entityPerCoroutine: 20 - honorBuildingIdSetting: 1 + honorBuildingIdSetting: 0 buildingsWithUniqueIds: 0 moveFeaturePositionTo: 0 MeshModifiers: [] GoModifiers: [] - presetFeatureType: 4 + presetFeatureType: 1 _maskValue: 0 selectedTypes: locationPrefabList: []