Skip to content

Commit 488cf93

Browse files
authored
Release/v1.4.5 (#974)
* master merge (#907) * add class to open settings for app on Android * update AutoSyncScene * fix AutoSyncScene and WorldAlignmentKit prefab * increase desired accuracy * increase desired accuracy * hopefully getting there * Prefab block for configuration window * update worldalignmentprefab * Merge explorer and interactive styled map examples. * images updated * layout, changelog link * Update WorldAlignmentKit prefab + fix reload script to use "update" function. * ar example scene names * Updated `Explorer` scene. * Updated worlsAlignmentKit * Updated working AR scene. * Fix double map initialize issue. * remove extra example scenes * fix merge conflict: PropertyDrawers.meta * prefab body text * update TabletopAR image * Possible fix for worldScale AR * Add namespace for ObjectPool + change Awake to start in Position with LocationProvider * WIP manual sync AR scene * fix broken WorldAlignmentKit.prefab after merge * make debug paths thicker * Add missing namespaces. * Missing namespace. * Manual World Alignment scene and prefab * fix broken meta file * Update scenes. * Update version to 1.4.0 * Scene cleanup - delete old examples * Fix wrong unwrapped tile id * Possible fix for Configuration window `NullReference` * remove Android pre-build checks for duplicate libraries (#574) * WorldAlignmentKit prefab: remove layer 'Map' from culling mask of Main Camera * move UniAndroidPermission to PlugIns folder * add sub-assets in scenelists via editor (#586) * Moved editor files to Assets/Mapbox/Unity/Editor * Delete moved files - Atlas Generator & scriptable Palette UI * Added Mapbox.Editor namespace, converted spaces to tabs. * Fix compile errors related to meta files. * Cleanup tooltip text. * Fix Warnings. * Update scenes. * Cleanup warnings - pass 2. * Cleanup warnings pass 3. * Update ScenesList.cs * Fix typecast error on filters + filter Pois labels based on localRank. * Add Update method to RangeTileProvider. * Update PathHelpers.cs * Change explorer to Data Explorer, clean unused assets. * fix duplicate buildings in WorldScaleAR-ManualAlignment * silence remaining warnings * Fix screenshot name for explorer, add initialization to elevationLayerProperties as a defensive fix. * Fix typo * Fix build error, turn vector layer off for Globe example, Add build settings. * Config window 1.4 (#587) * add sub-assets in scenelists via editor * assign default value to MapboxConfiguration's token status * Change camera for city simulator scene. * fix RasterTileExample * fix VoxelMap * Fix finished status not getting fired event for globe example. * silence another warning and remove unused using * make TileErrorHandler work with new AbstractMap * Fixes for RC3 * Renamed TabletopARKit prefab to ARTableTop * Turn off initializeOnStart for LocationBasedGame prefab. * Defensive fix for crash on iOS. * Fix for missing features - Add property in vectorsublayerproperties to clip features at tile boundary. * Change scene & prefab with clip at tile boundary setting. * Fix NRE's on inspectors for scriptable objects in sharedmodules. * Remove new from LocationProvider prefab name in LocationBasedGame prefab * Asset file cleanup * Trigger finished status for tiles that error out. * Fix flat terrain factory editor. * remove inital wait for GPS on DeviceLocationProvider start. Implement 'IsLocationServiceEnabled' property on 'Location' and send one Location event when location services are not enabled or failed to start in time. * Fix issue with prefab modifier where removing the `IFeaturePropertySettable` was not setting transforms for prefabs. * Make Modifiers & map selectable from node editor, change mismatching button style. * add 'IsLocationServiceInitializing' to 'Location.cs'. Expose that info in the LocationBasedGame scene * Add all layers from explorer v130 example (most layers turned off) * Make foldouts static. * Update scenelist. * move misplaced `link.xml` into MapboxAR subfolder * Remove interaction from DataExplorer scene, Added a new scene for interaction. * Turn buildings on in Data Explorer :) * Scale the canvas to fit the screen. * Change zoomSpeed = 0, merge building layers. * Update formatting of playground scenes, enable camera for data explorer. * Tweaks to scenes for performance & formatting. * Finally turn on the camera movement script on DataExplorer * Fix scaling in y for map & unity tile. Add script to keep camera above terrain for zoomable map. * Update buildingswithUniqueIds property. * Add prerequisite info for AR scenes. * work around crashes on iOS with escaped characters in the URL * Fix height data query. * Add missing using UnityEngine. * Update example descriptions * Disable SetCameraHeight script + add method to query height in unity units. * Update zoomable map scene to not have setCameraHeight * Remove replacing text with latlong for geocode response. * Fix formatting * Remove DirectionsQuery * Update project version * Add event system to CitySimulator scene + filter mouse events on search UI. * Format main scene UI. * another fix for URL encoding for iOS * Update changelog * Make filter values case - insensitive. (#632) * Make filter values case - insensitive. * Add checks to remove white spaces & empty entries. * Actually fix the issue :( * Fix tile position issue with vector features. Remove option when features are grouped. (#629) * Change file folder names (#635) * Remove folder with bad name. * Change name of folder to MapboxStyles instead of MapBoxStyles * Fix range height extrusion (#613) * Fix range height extrusion mesh generation. * Add extrusion scale factor to multiply height values when extruding geometry. * Update Changelog. * Add missing tooltips. * Don't clip min height for RangeHeight Extrusion option. * Add warning if max height is less than min height. Also, add error message and swap values in code * Collider Dropdown in Abstract Map for adding colliders on top of extruded geometry (#637) * wip * Geometry options drawer modified * collider options added * changed order of the collider options * dots * tooltips added * adding changes to tooltips * Playmode tests (#628) * [wip] PlayMode tests * playmode tests: try with copying files via MapboxDev menu * remove external test project * rename test files to follow naming convention * swtich from FileUtil.Copy/Delete to AssetDatabase.Copy/Delete * fix directions tests * try custom global MAPBOX_PLAYMODE_TESTS define in msc.rsp * remove mcs.rsp * change access modifiers on Directions, Geocoder and TileResource to make them available in EditorMode tests * enable more tests for PlayMode tests * some fixes for OSX and iOS * disbale Request.Cancel test for iOS and Android as results are not cosistent * HACK: workaround to make ForwardGeocode tests pass on iOS * more iOS fixing * add feature collections and kdtree collection (#565) * add feature collections and kdtree collection * Add namespaces to new files. * change InteractiveStyledVectorMap.unity to include a feature collection and query script * change scene objects * add missing highlight buildings script * Remove duplicate file * Updated changelog. * Ui fixes (#643) * Fix foldouts not retaining states between play mode & editor. * Don't allow empty names for layer visualizers. * Add defaults for all sublayer properties to not carry over any options from the previous layer. * Add missing tooltips. * Fix indentation. * Update tooltip for Extent Type. * Add tooltips for prefix labels for dropdowns. * Change `Style Name` to `Data Source` * Fix typo in colorPalette. * Selected newly created layer visualizer. * Update scenes with missing ScriptablePalette. * Update tooltip for min/max height extrusion. * Updated scene. * Update tooltip of sampleCount * Update scene after merge with develop * Fix scene, indentation for collider type. * Update scene with collider options. * [publish docs] (#652) * Add camera table top ar (#614) * Change RangeAroundTransformTile Provider to use the new API. * Add sample camera script for pan & zoom . * Update scene to use the new camera script. * Add reposition tile logic to RangeAroundTransformTileProvider. * Add method to click and get latlong under the mouse. * Added relative panning from camera * removed unnecessary line of code * Quick fix for panning speed * Clean up script and scene. * Update Changelog * Fix satellite imagery on roof not working. (#638) * Fix satellite imagery on roof not working. * Remove commented code. * Update changelog * Disable buildingsWithUniqueIds setting for MapboxStreets data source. (#655) * Added workaround to prevent users from accidentally turning on filtering for MapboxStreets building. * Update changelog * Disable InitializeOnStart when `InitializeWithLocationProvider` is used. (#656) * Disable initialize on start for AR cases. * Add check to make sure map is initialized before updating tiles. * Updated changelog * Updated manual synchornization example scene (#636) * updated manual synchornization example scene * Update TouchCamera.cs Uncommented line at 38. * added hint text to ManualSyncScene * fixed namespaces & moved scripts to new folder * updated scene & made a new manual aligment prefab * added namespace to UpdateMapPosByARPlaneY.cs * Changed map update to correct method. * Update ProjectSettings. * Release/v1.4.1 (#682) (#684) * Fix to properly show Mesh & GO modifiers in the UI * Add UI for removing/combining filters * Break classes into separate files, remove MapAPI wrapper. UnifiedMap takes over the functionality. Fix bug with filters * Add new prefabs for LocationBasedGame and CitySim * Fixes loadingPanel script to work with UnifiedMap * Trigger finished state when no vector layer is turned off. * Fix mapId for Satellite & satellite-streets * update PR template * Update UI to match design - round 1 * Add new data containers * Enable loading external configurations - take 2 (#552) * carry over changes from https://github.com/mapbox/mapbox-unity-sdk/pull/352 to latest develop * Fix the merge typo. * Integrate mapbox-ar-unity (#544) * add ARCore, ARKit, UnityARInterface * Mapbox AR code and examples * add KalmanFilter * some updated metas * fix .gitignore to not ignore parts of ARCore * add AR prefabs * fix .gitignore for .metas from temp files from docs generation * add additional properties to `Location` * add helper class for onscreen console * [wip] integrate AR * more logging for caching * MBTilesCache: Windows fix for path and filenames with +260 chars * add some logging to AbstractMap.cs * add editorconfig * debug messages around telem lib initialization * ARTableTop: test in Vienna * ProjectSettings: enable AR on Android * remove Debug messages * fix typo in TelemetryAndroid.cs file name * add layers needed for AR demo to the project settings * fix Unity's byte stripping for .Net 4.6 and IL2CPP * throw out uncessary stuff that comes with UnityARInterface and ARCore * update readme, add AR readme. * update CHANGELOG * wip integrate ar * Throw away unused ARKit stuff. * Update prefabs & scene * Add defaults options + linewidth parameter. * Add mockup for Presets UI * Adding tooltips for General, Image & Terrain sections. * Fix extra space in Terrain UI. * [WIP] Remove old map files, rename UnifiedMap to AbstractMap - working towards clean merge. * [WIP] Replace old VectorTileFactory with refactored ( VectorTileFactoryNew gets renamed) * add kalman comment * appveyor: don't use PowerShell to download docfx * Fix typo in terrain source. * New textures/materials for default building style * Merge StyleOptimizedVectorTileFactory functionality into VectorTileFactory * Updated settings to TextureSideWall * VectorLayerVisualizer refactor. * Hookup node editor with Plug & play refactor. * Add tooltips for vector section. * Add missing changes to VectorTIle.cs * add QueryTerrainHeight function to AbstractMap (#571) Looks good. * try with GPS position/heading, ignoring AR and bias * Fix compile error related to return type. (#572) minor change. * Added a API call to query height Added a API call on AbstractMap to query height at a certain latitude longitude. * Add preset defaults switching + snapMaptoZero hookup. * Changes to MapEditor. * Add code comments for LatitudeLongitudeToTileId change. (#573) * Fix compile error related to return type. * update code comments * Layer Visualizer for Building Ids (#502) * change VectorFeatureUnity and VectorLayerVisualizer classes to support buildings ids and do not render duplicates of same featuer from different tiles * add comments for an if clause in VectorFeatureUnity * Uv mapping (#503) * add uv mapping height modifier and a demo scene to show it off * fix TextureSideWallModifier to respect min_height property * fix a bug in wall segment calculation in TextureSideWallModifier where CenterSegment feature yielded long first sections fix a bug in PolygonModifier where it doesn't create tangents fix wrong asset bindings * fix an issue where TextureSideWallModifier doesn't take atlas section height into consideration * add a 8 building texture atlas * add new texture from random google images * fix a bug where bottomOfMidUv was calculated wrong * Fix formatting. * Add atlas texturing modifier into Plug & play UI. * Remove presets from map * work on DeviceLocationProvider, AutomaticSyncScene: size of player shows hdop, remove some debug statements * Add parameters to hookup Globe terrain factory. * Mapbox styles - MapboxStyles shader for layer colorization, AtlasTemplateGenerator for creating template images from AtlasInfo files, various scripts for assisting with building colorization. * Set defaults for all properties * Add API calls for layers * Renamed AddColorizeMapboxStyles.cs to MapboxStylesColorModifier.cs to better match existing nomenclature. Refactored MapboxStylesColorModifier.cs: Run method no longer adds ColorizeMapboxStyles.cs monobehaviour to VectorEntity.GameObject; Run method now includes all logic for color selection and material property setting previously found in ColorizeMapboxStyles.cs; utilizes VectorEntity's cached MeshRenderer component to set colors. Deleted ColorizeMapboxStyles.cs and ColorizeMapboxStylesEditor.cs. * Add custom option to primitive type - for fully custom modifier stack. * Hook up scriptable palette with P&P * Add code comments to Abstract Map. * Cleanup unused stuff. * Fixed private field naming to meet code style requirements. * Fix indentation * Adds ability to add custom tile providers. * more checks if access token is set (#564) * Style development - colorization and atlas template generator (#579) * add uv mapping height modifier and a demo scene to show it off * fix TextureSideWallModifier to respect min_height property * fix a bug in wall segment calculation in TextureSideWallModifier where CenterSegment feature yielded long first sections fix a bug in PolygonModifier where it doesn't create tangents fix wrong asset bindings * fix an issue where TextureSideWallModifier doesn't take atlas section height into consideration * change VectorFeatureUnity and VectorLayerVisualizer classes to support buildings ids and do not render duplicates of same featuer from different tiles * add comments for an if clause in VectorFeatureUnity * add a 8 building texture atlas * add new texture from random google images * add roof uv & atlas support * test textures for styling development * add missing constant Vector3Right * fix materials in mat modifier * fix atlas info object * Removed unused properties from shader * New textures/materials for default building style * Updated settings to TextureSideWall * Mapbox styles - MapboxStyles shader for layer colorization, AtlasTemplateGenerator for creating template images from AtlasInfo files, various scripts for assisting with building colorization. * Renamed AddColorizeMapboxStyles.cs to MapboxStylesColorModifier.cs to better match existing nomenclature. Refactored MapboxStylesColorModifier.cs: Run method no longer adds ColorizeMapboxStyles.cs monobehaviour to VectorEntity.GameObject; Run method now includes all logic for color selection and material property setting previously found in ColorizeMapboxStyles.cs; utilizes VectorEntity's cached MeshRenderer component to set colors. Deleted ColorizeMapboxStyles.cs and ColorizeMapboxStylesEditor.cs. * Fixed private field naming to meet code style requirements. * Fix indentation * log GPS timestamp once more * Cleanup + update prefabs & UI. * Fixes atlas textures bug, UI bug and creates city sim prefab with textured buildings. * Add building Id tileset as default, fix minor issues. * Update map prefab with default style * Fix to trigger finished state on VectorTileFactory. * Add loading texture, build locationProvider example , fix bug with imagery init. * Update Camera script to work with new map, LocationBasedGame prefab uses camerabounds by default. * Code cleanup - move drawers into their own files. * Code Cleanup. Arrange files into folders. * Foldouts don't forget what they were told to do ;) * Fixed null ref error on MapboxStylesColorModifier; class now null checks m_scriptablePalette on Initialize and Run, and returns if object is null. Cleanup up names in Scriptable Palette Editor to make inspector look slightly cleaner. * Update ARTabletop scene. * updated Clip/Box shader (#580) * updated shader * fix indentation * fixed indent * Recreate ZoomableMap and Globe with new Plug and Play functionality (#585) * created clip shaders for stylized map * Fix errors from meta files. * Add TabletopARkit prefab. * fix missing tangents bug. * Set Relative height = false as default. * Fix issue with final state not being triggered when image factory was disabled. * add UniAndroidPermission * DeviceLocationProvider: request runtime location permissions on Android * add class to open settings for app on Android * update AutoSyncScene * fix AutoSyncScene and WorldAlignmentKit prefab * increase desired accuracy * increase desired accuracy * hopefully getting there * Prefab block for configuration window * update worldalignmentprefab * Merge explorer and interactive styled map examples. * images updated * layout, changelog link * Update WorldAlignmentKit prefab + fix reload script to use "update" function. * ar example scene names * Updated `Explorer` scene. * Updated worlsAlignmentKit * Updated working AR scene. * Fix double map initialize issue. * remove extra example scenes * fix merge conflict: PropertyDrawers.meta * prefab body text * update TabletopAR image * Possible fix for worldScale AR * Add namespace for ObjectPool + change Awake to start in Position with LocationProvider * WIP manual sync AR scene * fix broken WorldAlignmentKit.prefab after merge * make debug paths thicker * Add missing namespaces. * Missing namespace. * Manual World Alignment scene and prefab * fix broken meta file * Update scenes. * Update version to 1.4.0 * Scene cleanup - delete old examples * Fix wrong unwrapped tile id * Possible fix for Configuration window `NullReference` * remove Android pre-build checks for duplicate libraries (#574) * WorldAlignmentKit prefab: remove layer 'Map' from culling mask of Main Camera * move UniAndroidPermission to PlugIns folder * add sub-assets in scenelists via editor (#586) * Moved editor files to Assets/Mapbox/Unity/Editor * Delete moved files - Atlas Generator & scriptable Palette UI * Added Mapbox.Editor namespace, converted spaces to tabs. * Fix compile errors related to meta files. * Cleanup tooltip text. * Fix Warnings. * Update scenes. * Cleanup warnings - pass 2. * Cleanup warnings pass 3. * Update ScenesList.cs * Fix typecast error on filters + filter Pois labels based on localRank. * Add Update method to RangeTileProvider. * Update PathHelpers.cs * Change explorer to Data Explorer, clean unused assets. * fix duplicate buildings in WorldScaleAR-ManualAlignment * silence remaining warnings * Fix screenshot name for explorer, add initialization to elevationLayerProperties as a defensive fix. * Fix typo * Fix build error, turn vector layer off for Globe example, Add build settings. * Config window 1.4 (#587) * add sub-assets in scenelists via editor * assign default value to MapboxConfiguration's token status * Change camera for city simulator scene. * fix RasterTileExample * fix VoxelMap * Fix finished status not getting fired event for globe example. * silence another warning and remove unused using * make TileErrorHandler work with new AbstractMap * Fixes for RC3 * Renamed TabletopARKit prefab to ARTableTop * Turn off initializeOnStart for LocationBasedGame prefab. * Defensive fix for crash on iOS. * Fix for missing features - Add property in vectorsublayerproperties to clip features at tile boundary. * Change scene & prefab with clip at tile boundary setting. * Fix NRE's on inspectors for scriptable objects in sharedmodules. * Remove new from LocationProvider prefab name in LocationBasedGame prefab * Asset file cleanup * Trigger finished status for tiles that error out. * Fix flat terrain factory editor. * remove inital wait for GPS on DeviceLocationProvider start. Implement 'IsLocationServiceEnabled' property on 'Location' and send one Location event when location services are not enabled or failed to start in time. * Fix issue with prefab modifier where removing the `IFeaturePropertySettable` was not setting transforms for prefabs. * Make Modifiers & map selectable from node editor, change mismatching button style. * add 'IsLocationServiceInitializing' to 'Location.cs'. Expose that info in the LocationBasedGame scene * Add all layers from explorer v130 example (most layers turned off) * Make foldouts static. * Update scenelist. * move misplaced `link.xml` into MapboxAR subfolder * Remove interaction from DataExplorer scene, Added a new scene for interaction. * Turn buildings on in Data Explorer :) * Scale the canvas to fit the screen. * Change zoomSpeed = 0, merge building layers. * Update formatting of playground scenes, enable camera for data explorer. * Tweaks to scenes for performance & formatting. * Finally turn on the camera movement script on DataExplorer * Fix scaling in y for map & unity tile. Add script to keep camera above terrain for zoomable map. * Update buildingswithUniqueIds property. * Add prerequisite info for AR scenes. * work around crashes on iOS with escaped characters in the URL * Fix height data query. * Add missing using UnityEngine. * Update example descriptions * Disable SetCameraHeight script + add method to query height in unity units. * Update zoomable map scene to not have setCameraHeight * Remove replacing text with latlong for geocode response. * Fix formatting * Remove DirectionsQuery * Update project version * Add event system to CitySimulator scene + filter mouse events on search UI. * Format main scene UI. * another fix for URL encoding for iOS * Update changelog * Make filter values case - insensitive. (#632) * Make filter values case - insensitive. * Add checks to remove white spaces & empty entries. * Actually fix the issue :( * Fix tile position issue with vector features. Remove option when features are grouped. (#629) * Change file folder names (#635) * Remove folder with bad name. * Change name of folder to MapboxStyles instead of MapBoxStyles * Fix range height extrusion (#613) * Fix range height extrusion mesh generation. * Add extrusion scale factor to multiply height values when extruding geometry. * Update Changelog. * Add missing tooltips. * Don't clip min height for RangeHeight Extrusion option. * Add warning if max height is less than min height. Also, add error message and swap values in code * Collider Dropdown in Abstract Map for adding colliders on top of extruded geometry (#637) * wip * Geometry options drawer modified * collider options added * changed order of the collider options * dots * tooltips added * adding changes to tooltips * Playmode tests (#628) * [wip] PlayMode tests * playmode tests: try with copying files via MapboxDev menu * remove external test project * rename test files to follow naming convention * swtich from FileUtil.Copy/Delete to AssetDatabase.Copy/Delete * fix directions tests * try custom global MAPBOX_PLAYMODE_TESTS define in msc.rsp * remove mcs.rsp * change access modifiers on Directions, Geocoder and TileResource to make them available in EditorMode tests * enable more tests for PlayMode tests * some fixes for OSX and iOS * disbale Request.Cancel test for iOS and Android as results are not cosistent * HACK: workaround to make ForwardGeocode tests pass on iOS * more iOS fixing * add feature collections and kdtree collection (#565) * add feature collections and kdtree collection * Add namespaces to new files. * change InteractiveStyledVectorMap.unity to include a feature collection and query script * change scene objects * add missing highlight buildings script * Remove duplicate file * Updated changelog. * Ui fixes (#643) * Fix foldouts not retaining states between play mode & editor. * Don't allow empty names for layer visualizers. * Add defaults for all sublayer properties to not carry over any options from the previous layer. * Add missing tooltips. * Fix indentation. * Update tooltip for Extent Type. * Add tooltips for prefix labels for dropdowns. * Change `Style Name` to `Data Source` * Fix typo in colorPalette. * Selected newly created layer visualizer. * Update scenes with missing ScriptablePalette. * Update tooltip for min/max height extrusion. * Updated scene. * Update tooltip of sampleCount * Update scene after merge with develop * Fix scene, indentation for collider type. * Update scene with collider options. * [publish docs] (#652) * Add camera table top ar (#614) * Change RangeAroundTransformTile Provider to use the new API. * Add sample camera script for pan & zoom . * Update scene to use the new camera script. * Add reposition tile logic to RangeAroundTransformTileProvider. * Add method to click and get latlong under the mouse. * Added relative panning from camera * removed unnecessary line of code * Quick fix for panning speed * Clean up script and scene. * Update Changelog * Fix satellite imagery on roof not working. (#638) * Fix satellite imagery on roof not working. * Remove commented code. * Update changelog * Disable buildingsWithUniqueIds setting for MapboxStreets data source. (#655) * Added workaround to prevent users from accidentally turning on filtering for MapboxStreets building. * Update changelog * Disable InitializeOnStart when `InitializeWithLocationProvider` is used. (#656) * Disable initialize on start for AR cases. * Add check to make sure map is initialized before updating tiles. * Updated changelog * Updated manual synchornization example scene (#636) * updated manual synchornization example scene * Update TouchCamera.cs Uncommented line at 38. * added hint text to ManualSyncScene * fixed namespaces & moved scripts to new folder * updated scene & made a new manual aligment prefab * added namespace to UpdateMapPosByARPlaneY.cs * Changed map update to correct method. * Update ProjectSettings. * Updated version number +scenelist * Update scene to show ObjectInspector panel again. * fix a bug in LayerPropertyIsEqualFilterComparer (#662) * fix a bug in LayerPropertyIsEqualFilterComparer where it does <= instead of == (fixes #660) * Simplified expression. * Fix incorrect editor culture handling on some locales (#658) (#659) Geocode coordinates are now converted with InvariantCulture, which makes sure they do not depend on the locale of the computer being used. * Set scaleFactor = 1 in property drawer. (#665) * Fix custom mapid (#666) * Fix custom mapId being overridden by empty string. * Add missing reference * removed error messages from manual touch script (#667) * Fix scaling for world scale when zoom level was changed. (#668) * Update worldscale AR scene - fix ARDelta not registering. * fix a bug where SpawnInsideModifier getting stuck in infinite loop (#676) * fix a bug where SpawnInsideModifier getting stuck in infinite loop * Update changelog * Remove duplicate scene. * Make internal method private. * Update Image settings to use retina & mip map * Add BuildingsWithUniqueIds checkbox back. * Update changelog & license. * Update scene. * Release/v1.4.1 (#682) (#683) * Fix to properly show Mesh & GO modifiers in the UI * Add UI for removing/combining filters * Break classes into separate files, remove MapAPI wrapper. UnifiedMap takes over the functionality. Fix bug with filters * Add new prefabs for LocationBasedGame and CitySim * Fixes loadingPanel script to work with UnifiedMap * Trigger finished state when no vector layer is turned off. * Fix mapId for Satellite & satellite-streets * update PR template * Update UI to match design - round 1 * Add new data containers * Enable loading external configurations - take 2 (#552) * carry over changes from https://github.com/mapbox/mapbox-unity-sdk/pull/352 to latest develop * Fix the merge typo. * Integrate mapbox-ar-unity (#544) * add ARCore, ARKit, UnityARInterface * Mapbox AR code and examples * add KalmanFilter * some updated metas * fix .gitignore to not ignore parts of ARCore * add AR prefabs * fix .gitignore for .metas from temp files from docs generation * add additional properties to `Location` * add helper class for onscreen console * [wip] integrate AR * more logging for caching * MBTilesCache: Windows fix for path and filenames with +260 chars * add some logging to AbstractMap.cs * add editorconfig * debug messages around telem lib initialization * ARTableTop: test in Vienna * ProjectSettings: enable AR on Android * remove Debug messages * fix typo in TelemetryAndroid.cs file name * add layers needed for AR demo to the project settings * fix Unity's byte stripping for .Net 4.6 and IL2CPP * throw out uncessary stuff that comes with UnityARInterface and ARCore * update readme, add AR readme. * update CHANGELOG * wip integrate ar * Throw away unused ARKit stuff. * Update prefabs & scene * Add defaults options + linewidth parameter. * Add mockup for Presets UI * Adding tooltips for General, Image & Terrain sections. * Fix extra space in Terrain UI. * [WIP] Remove old map files, rename UnifiedMap to AbstractMap - working towards clean merge. * [WIP] Replace old VectorTileFactory with refactored ( VectorTileFactoryNew gets renamed) * add kalman comment * appveyor: don't use PowerShell to download docfx * Fix typo in terrain source. * New textures/materials for default building style * Merge StyleOptimizedVectorTileFactory functionality into VectorTileFactory * Updated settings to TextureSideWall * VectorLayerVisualizer refactor. * Hookup node editor with Plug & play refactor. * Add tooltips for vector section. * Add missing changes to VectorTIle.cs * add QueryTerrainHeight function to AbstractMap (#571) Looks good. * try with GPS position/heading, ignoring AR and bias * Fix compile error related to return type. (#572) minor change. * Added a API call to query height Added a API call on AbstractMap to query height at a certain latitude longitude. * Add preset defaults switching + snapMaptoZero hookup. * Changes to MapEditor. * Add code comments for LatitudeLongitudeToTileId change. (#573) * Fix compile error related to return type. * update code comments * Layer Visualizer for Building Ids (#502) * change VectorFeatureUnity and VectorLayerVisualizer classes to support buildings ids and do not render duplicates of same featuer from different tiles * add comments for an if clause in VectorFeatureUnity * Uv mapping (#503) * add uv mapping height modifier and a demo scene to show it off * fix TextureSideWallModifier to respect min_height property * fix a bug in wall segment calculation in TextureSideWallModifier where CenterSegment feature yielded long first sections fix a bug in PolygonModifier where it doesn't create tangents fix wrong asset bindings * fix an issue where TextureSideWallModifier doesn't take atlas section height into consideration * add a 8 building texture atlas * add new texture from random google images * fix a bug where bottomOfMidUv was calculated wrong * Fix formatting. * Add atlas texturing modifier into Plug & play UI. * Remove presets from map * work on DeviceLocationProvider, AutomaticSyncScene: size of player shows hdop, remove some debug statements * Add parameters to hookup Globe terrain factory. * Mapbox styles - MapboxStyles shader for layer colorization, AtlasTemplateGenerator for creating template images from AtlasInfo files, various scripts for assisting with building colorization. * Set defaults for all properties * Add API calls for layers * Renamed AddColorizeMapboxStyles.cs to MapboxStylesColorModifier.cs to better match existing nomenclature. Refactored MapboxStylesColorModifier.cs: Run method no longer adds ColorizeMapboxStyles.cs monobehaviour to VectorEntity.GameObject; Run method now includes all logic for color selection and material property setting previously found in ColorizeMapboxStyles.cs; utilizes VectorEntity's cached MeshRenderer component to set colors. Deleted ColorizeMapboxStyles.cs and ColorizeMapboxStylesEditor.cs. * Add custom option to primitive type - for fully custom modifier stack. * Hook up scriptable palette with P&P * Add code comments to Abstract Map. * Cleanup unused stuff. * Fixed private field naming to meet code style requirements. * Fix indentation * Adds ability to add custom tile providers. * more checks if access token is set (#564) * Style development - colorization and atlas template generator (#579) * add uv mapping height modifier and a demo scene to show it off * fix TextureSideWallModifier to respect min_height property * fix a bug in wall segment calculation in TextureSideWallModifier where CenterSegment feature yielded long first sections fix a bug in PolygonModifier where it doesn't create tangents fix wrong asset bindings * fix an issue where TextureSideWallModifier doesn't take atlas section height into consideration * change VectorFeatureUnity and VectorLayerVisualizer classes to support buildings ids and do not render duplicates of same featuer from different tiles * add comments for an if clause in VectorFeatureUnity * add a 8 building texture atlas * add new texture from random google images * add roof uv & atlas support * test textures for styling development * add missing constant Vector3Right * fix materials in mat modifier * fix atlas info object * Removed unused properties from shader * New textures/materials for default building style * Updated settings to TextureSideWall * Mapbox styles - MapboxStyles shader for layer colorization, AtlasTemplateGenerator for creating template images from AtlasInfo files, various scripts for assisting with building colorization. * Renamed AddColorizeMapboxStyles.cs to MapboxStylesColorModifier.cs to better match existing nomenclature. Refactored MapboxStylesColorModifier.cs: Run method no longer adds ColorizeMapboxStyles.cs monobehaviour to VectorEntity.GameObject; Run method now includes all logic for color selection and material property setting previously found in ColorizeMapboxStyles.cs; utilizes VectorEntity's cached MeshRenderer component to set colors. Deleted ColorizeMapboxStyles.cs and ColorizeMapboxStylesEditor.cs. * Fixed private field naming to meet code style requirements. * Fix indentation * log GPS timestamp once more * Cleanup + update prefabs & UI. * Fixes atlas textures bug, UI bug and creates city sim prefab with textured buildings. * Add building Id tileset as default, fix minor issues. * Update map prefab with default style * Fix to trigger finished state on VectorTileFactory. * Add loading texture, build locationProvider example , fix bug with imagery init. * Update Camera script to work with new map, LocationBasedGame prefab uses camerabounds by default. * Code cleanup - move drawers into their own files. * Code Cleanup. Arrange files into folders. * Foldouts don't forget what they were told to do ;) * Fixed null ref error on MapboxStylesColorModifier; class now null checks m_scriptablePalette on Initialize and Run, and returns if object is null. Cleanup up names in Scriptable Palette Editor to make inspector look slightly cleaner. * Update ARTabletop scene. * updated Clip/Box shader (#580) * updated shader * fix indentation * fixed indent * Recreate ZoomableMap and Globe with new Plug and Play functionality (#585) * created clip shaders for stylized map * Fix errors from meta files. * Add TabletopARkit prefab. * fix missing tangents bug. * Set Relative height = false as default. * Fix issue with final state not being triggered when image factory was disabled. * add UniAndroidPermission * DeviceLocationProvider: request runtime location permissions on Android * add class to open settings for app on Android * update AutoSyncScene * fix AutoSyncScene and WorldAlignmentKit prefab * increase desired accuracy * increase desired accuracy * hopefully getting there * Prefab block for configuration window * update worldalignmentprefab * Merge explorer and interactive styled map examples. * images updated * layout, changelog link * Update WorldAlignmentKit prefab + fix reload script to use "update" function. * ar example scene names * Updated `Explorer` scene. * Updated worlsAlignmentKit * Updated working AR scene. * Fix double map initialize issue. * remove extra example scenes * fix merge conflict: PropertyDrawers.meta * prefab body text * update TabletopAR image * Possible fix for worldScale AR * Add namespace for ObjectPool + change Awake to start in Position with LocationProvider * WIP manual sync AR scene * fix broken WorldAlignmentKit.prefab after merge * make debug paths thicker * Add missing namespaces. * Missing namespace. * Manual World Alignment scene and prefab * fix broken meta file * Update scenes. * Update version to 1.4.0 * Scene cleanup - delete old examples * Fix wrong unwrapped tile id * Possible fix for Configuration window `NullReference` * remove Android pre-build checks for duplicate libraries (#574) * WorldAlignmentKit prefab: remove layer 'Map' from culling mask of Main Camera * move UniAndroidPermission to PlugIns folder * add sub-assets in scenelists via editor (#586) * Moved editor files to Assets/Mapbox/Unity/Editor * Delete moved files - Atlas Generator & scriptable Palette UI * Added Mapbox.Editor namespace, converted spaces to tabs. * Fix compile errors related to meta files. * Cleanup tooltip text. * Fix Warnings. * Update scenes. * Cleanup warnings - pass 2. * Cleanup warnings pass 3. * Update ScenesList.cs * Fix typecast error on filters + filter Pois labels based on localRank. * Add Update method to RangeTileProvider. * Update PathHelpers.cs * Change explorer to Data Explorer, clean unused assets. * fix duplicate buildings in WorldScaleAR-ManualAlignment * silence remaining warnings * Fix screenshot name for explorer, add initialization to elevationLayerProperties as a defensive fix. * Fix typo * Fix build error, turn vector layer off for Globe example, Add build settings. * Config window 1.4 (#587) * add sub-assets in scenelists via editor * assign default value to MapboxConfiguration's token status * Change camera for city simulator scene. * fix RasterTileExample * fix VoxelMap * Fix finished status not getting fired event for globe example. * silence another warning and remove unused using * make TileErrorHandler work with new AbstractMap * Fixes for RC3 * Renamed TabletopARKit prefab to ARTableTop * Turn off initializeOnStart for LocationBasedGame prefab. * Defensive fix for crash on iOS. * Fix for missing features - Add property in vectorsublayerproperties to clip features at tile boundary. * Change scene & prefab with clip at tile boundary setting. * Fix NRE's on inspectors for scriptable objects in sharedmodules. * Remove new from LocationProvider prefab name in LocationBasedGame prefab * Asset file cleanup * Trigger finished status for tiles that error out. * Fix flat terrain factory editor. * remove inital wait for GPS on DeviceLocationProvider start. Implement 'IsLocationServiceEnabled' property on 'Location' and send one Location event when location services are not enabled or failed to start in time. * Fix issue with prefab modifier where removing the `IFeaturePropertySettable` was not setting transforms for prefabs. * Make Modifiers & map selectable from node editor, change mismatching button style. * add 'IsLocationServiceInitializing' to 'Location.cs'. Expose that info in the LocationBasedGame scene * Add all layers from explorer v130 example (most layers turned off) * Make foldouts static. * Update scenelist. * move misplaced `link.xml` into MapboxAR subfolder * Remove interaction from DataExplorer scene, Added a new scene for interaction. * Turn buildings on in Data Explorer :) * Scale the canvas to fit the screen. * Change zoomSpeed = 0, merge building layers. * Update formatting of playground scenes, enable camera for data explorer. * Tweaks to scenes for performance & formatting. * Finally turn on the camera movement script on DataExplorer * Fix scaling in y for map & unity tile. Add script to keep camera above terrain for zoomable map. * Update buildingswithUniqueIds property. * Add prerequisite info for AR scenes. * work around crashes on iOS with escaped characters in the URL * Fix height data query. * Add missing using UnityEngine. * Update example descriptions * Disable SetCameraHeight script + add method to query height in unity units. * Update zoomable map scene to not have setCameraHeight * Remove replacing text with latlong for geocode response. * Fix formatting * Remove DirectionsQuery * Update project version * Add event system to CitySimulator scene + filter mouse events on search UI. * Format main scene UI. * another fix for URL encoding for iOS * Update changelog * Make filter values case - insensitive. (#632) * Make filter values case - insensitive. * Add checks to remove white spaces & empty entries. * Actually fix the issue :( * Fix tile position issue with vector features. Remove option when features are grouped. (#629) * Change file folder names (#635) * Remove folder with bad name. * Change name of folder to MapboxStyles instead of MapBoxStyles * Fix range height extrusion (#613) * Fix range height extrusion mesh generation. * Add extrusion scale factor to multiply height values when extruding geometry. * Update Changelog. * Add missing tooltips. * Don't clip min height for RangeHeight Extrusion option. * Add warning if max height is less than min height. Also, add error message and swap values in code * Collider Dropdown in Abstract Map for adding colliders on top of extruded geometry (#637) * wip * Geometry options drawer modified * collider options added * changed order of the collider options * dots * tooltips added * adding changes to tooltips * Playmode tests (#628) * [wip] PlayMode tests * playmode tests: try with copying files via MapboxDev menu * remove external test project * rename test files to follow naming convention * swtich from FileUtil.Copy/Delete to AssetDatabase.Copy/Delete * fix directions tests * try custom global MAPBOX_PLAYMODE_TESTS define in msc.rsp * remove mcs.rsp * change access modifiers on Directions, Geocoder and TileResource to make them available in EditorMode tests * enable more tests for PlayMode tests * some fixes for OSX and iOS * disbale Request.Cancel test for iOS and Android as results are not cosistent * HACK: workaround to make ForwardGeocode tests pass on iOS * more iOS fixing * add feature collections and kdtree collection (#565) * add feature collections and kdtree collection * Add namespaces to new files. * change InteractiveStyledVectorMap.unity to include a feature collection and query script * change scene objects * add missing highlight buildings script * Remove duplicate file * Updated changelog. * Ui fixes (#643) * Fix foldouts not retaining states between play mode & editor. * Don't allow empty names for layer visualizers. * Add defaults for all sublayer properties to not carry over any options from the previous layer. * Add missing tooltips. * Fix indentation. * Update tooltip for Extent Type. * Add tooltips for prefix labels for dropdowns. * Change `Style Name` to `Data Source` * Fix typo in colorPalette. * Selected newly created layer visualizer. * Update scenes with missing ScriptablePalette. * Update tooltip for min/max height extrusion. * Updated scene. * Update tooltip of sampleCount * Update scene after merge with develop * Fix scene, indentation for collider type. * Update scene with collider options. * [publish docs] (#652) * Add camera table top ar (#614) * Change RangeAroundTransformTile Provider to use the new API. * Add sample camera script for pan & zoom . * Update scene to use the new camera script. * Add reposition tile logic to RangeAroundTransformTileProvider. * Add method to click and get latlong under the mouse. * Added relative panning from camera * removed unnecessary line of code * Quick fix for panning speed * Clean up script and scene. * Update Changelog * Fix satellite imagery on roof not working. (#638) * Fix satellite imagery on roof not working. * Remove commented code. * Update changelog * Disable buildingsWithUniqueIds setting for MapboxStreets data source. (#655) * Added workaround to prevent users from accidentally turning on filtering for MapboxStreets building. * Update changelog * Disable InitializeOnStart when `InitializeWithLocationProvider` is used. (#656) * Disable initialize on start for AR cases. * Add check to make sure map is initialized before updating tiles. * Updated changelog * Updated manual synchornization example scene (#636) * updated manual synchornization example scene * Update TouchCamera.cs Uncommented line at 38. * added hint text to ManualSyncScene * fixed namespaces & moved scripts to new folder * updated scene & made a new manual aligment prefab * added namespace to UpdateMapPosByARPlaneY.cs * Changed map update to correct method. * Update ProjectSettings. * Updated version number +scenelist * Update scene to show ObjectInspector panel again. * fix a bug in LayerPropertyIsEqualFilterComparer (#662) * fix a bug in LayerPropertyIsEqualFilterComparer where it does <= instead of == (fixes #660) * Simplified expression. * Fix incorrect editor culture handling on some locales (#658) (#659) Geocode coordinates are now converted with InvariantCulture, which makes sure they do not depend on the locale of the computer being used. * Set scaleFactor = 1 in property drawer. (#665) * Fix custom mapid (#666) * Fix custom mapId being overridden by empty string. * Add missing reference * removed error messages from manual touch script (#667) * Fix scaling for world scale when zoom level was changed. (#668) * Update worldscale AR scene - fix ARDelta not registering. * fix a bug where SpawnInsideModifier getting stuck in infinite loop (#676) * fix a bug where SpawnInsideModifier getting stuck in infinite loop * Update changelog * Remove duplicate scene. * Make internal method private. * Update Image settings to use retina & mip map * Add BuildingsWithUniqueIds checkbox back. * Update changelog & license. * Update scene. * Update ISSUE_TEMPLATE.md (#694) add * Scripting Runtime Version: * Scripting Backend: * Api Compatibility Level: * Add onUpdated event to the map. (#704) * Add onUpdated event to the map. Fix Directions Factory to use the onUpdated event. * Add code comments * Update changelog * Update to latest ARInterface (#699) * update to latest https://github.com/Unity-Technologies/experimental-ARInterface * Poi locations (#716) * Updated version number +scenelist * Update scene to show ObjectInspector panel again. * fix a bug in LayerPropertyIsEqualFilterComparer (#662) * fix a bug in LayerPropertyIsEqualFilterComparer where it does <= instead of == (fixes #660) * Simplified expression. * Fix incorrect editor culture handling on some locales (#658) (#659) Geocode coordinates are now converted with InvariantCulture, which makes sure they do not depend on the locale of the computer being used. * Set scaleFactor = 1 in property drawer. (#665) * Fix custom mapid (#666) * Fix custom mapId being overridden by empty string. * Add missing reference * removed error messages from manual touch script (#667) * config done * sorted the working of the class based on the concatenation check * Fix scaling for world scale when zoom level was changed. * Fix scaling for world scale when zoom level was changed. (#668) * tree view added * adding first vertex default * Persist layer selection across play & edit mode. * null exception fixed * Update VectorLayerPropertiesDrawer.cs fixed arry index error for the issue * some more work done with props * functioning multiselect and complete ui * cases handled * setting defaults * functioning categories * Create new POI placement scene with prefabs (#685) * Alphabetize categories (#688) * adding new architecture * .. * popularity and name filters in * density done * bugs fixed * in-progress visualizer for specific locations * build vectorfeatures in visualizer * Address search UI * null check on user provided coordinates * search UI improvements * separate truncated coordinates for UI * Create new location prefabs (#696) * adding convenience methods to AbstractMap * functional specific locations visualizer * adding fix to type filter * Add description of scene and update modifiers (#697) * completed PlacePrefabAtGeoLocation methods and callbacks, added null checks * adding check to make sure inactive doesnt spawn anything * added callbacks to remaining methods * need help to fix the issue. but, crash stopped now * fix null reference errors in the treeview when selected items are removed via undo or at runtime. * Reorganize files for consistency (#703) * apply snapterrain modifier in LocationPrefabLayerVisualizer * vectortilefactory builds layers with an empty string * fix for source * handling no prefab found * .. * adding source warning to the location prefabs section * adding fixes to not spawn prefabs based on source * Update tooltips and naming * update AbstractMap methods * name objects in hierarchy based on sublayer name * fix layer properties spacing * fix for the streets v7 to remain fixed * Fix NREs when undoing layer creation, Location prefabs layers persist * Rename POI Placement example * Move API test script * Rename API Test script * update changelog * Location prefabs layers respect performance options * update performance options accessor * Correct name and namespace of test script * wip * refactor API methods * code cleanup * remove popularity enum * Fix active check in locationprefablayervisualizer * Remove incorrect break * remove commented lines * Fix layer check in abstract map spawnprefab methods * simplify example script * update example * update changelog * remove empty class * Fix formatting * Fix type * Data fetcher (#712) * add terrain creation strategies change abstract map to use terrain factory base and strategies * remove terrain factories change terrain layer to use terrain and strategies * add data fetcher class and extract data fetching from factories * add ImageDataFetcher and change image factory to use it * add vector data fetcher change internal methods to protected * Update changelog * fix a bug where side wall mesh generation doesn't work with elevated terrain (#723) * Android native location plugin (#724) * [wip] backport native Android Location Plugin * [wip] backporting native Android GPS * update Android GPS plugin * [wip] LocationProvider example scene * [wip] native android location provider * loop through LocationArrayEditorLocationProvider instead of repeating last position * increase desired accuracy * New scene settings. * [wip] EditorGpsLogLocationProvider * try to rotated map * update scene * fix RotateWithLocationProvider to not overwrite existing rotation values * fix logic for 'IsLocationUpdated' * increase follow factor * [wip]: split Heading into Heading and Orientation * Update scene to move map instead of player. * [wip] try to rotated map * backport Location.DeviceOrientation and Location.UserHeading to default DeviceLocationProvider * [wip] calculate UserHeading with weigthed formula * CircularBuffer tests * fix typos in CircularBuffer test * update changelog * fix DeviceOrientation in LocationProviderTest scene. Some other small fixes. * save scene * Remove unused file (#729) * Remove unused file * Fix OnDestroy errors in Image & terrain factory. * Nesting sections gui (#735) * basic cosmetic changes in * ui issue fixed * duplicate layers taken care of * fixed indentation issues and checkboxes * added the new UI to the common area * cosmetic changes done * small language change * Ui formatting cleanup (#738) * basic cosmetic changes in * ui issue fixed * duplicate layers taken care of * fixed indentation issues and checkboxes * added the new UI to the common area * cosmetic changes done * Switch to EditorGuiLayout and some UI formatting changes. * Preload names from tile json {WIP DO NOT MERGE} (#727) * adding the data structure for processing tilejson response * removed datatype... cleaned the class for ease of use in the future * new architecture works * wip * all visible features in for now.. * hacky fix * fixed indices * adding unity objectId to editorprefs * mysterious unexplained behaviour.. handled it with a hack * solid fix this time.. mystery resolved -Sherlock Holmes * added warning for invalid tilejson response * basic cosmetic changes in * ui issue fixed * duplicate layers taken care of * fixed indentation issues and checkboxes * add check for loaded tileJSON * added the new UI to the common area * cosmetic changes done * adding formatting changes * Update 05-changelog.md Adding preloaded layers feature to the changelog * Switch to EditorGuiLayout and some UI formatting changes. * Fix layer renaming in treeview (#748) * Fix layer renaming in treeview, make layer selection persist during serialization. * Fix geocode attribute drawer not working by itself. * removing unnecessary lines * Fix errors in individual modifier UI's. Remove unused files. * Monobehavior inheritance (#730) * Allow MonoBehaviour message inheritance (#654) * Allow MonoBehaviour message inheritance Removes private modifier restrictions from Mapbox Unity classes that inherit from MonoBehaviour. Applies protected virtual modifier to any use of MonoBehaviour Messages detailed here: https://docs.unity3d.com/ScriptReference/MonoBehaviour.html * Remove Update from GlobeTileProvider Adding TileCover is only needed once, but was attempted every frame. * Change remaining private accessors to protected virtual. * Ui notoken fix (#749) * Add catch to exception on initial no token. * Fix loading of UI when token is added. * Add POIItems to node editor. * no access token handled * fixed helpbox text * Fix indentation, add styles for "no internet" errors, fix error with filter property dropdown. * small fix to catch no access token exception properly * made the filter section uniform with other elements * Change location provider folder/scene name (#750) * Ui dropdown fix (#756) * fix for the drop downs * Fix for UIlayout mismatch warning. * custom data source fix * property names index fixed now * fix argument out of range issue. * catch errors when string properties are passed to extrusion modifiers * custom empty string fixed * removing an unnecessary debug.log * 1.4.2 example scene updates (#760) * fix for the drop downs * Fix for UIlayout mismatch warning. * custom data source fix * property names index fixed now * fix argument out of range issue. * catch errors when string properties are passed to extrusion modifiers * updated prefabs and prefab example scenes * Fix example scenes (#757) * Ui dropdown fix (#758) * fix for the drop downs * Fix for UIlayout mismatch warning. * custom data source fix * property names index fixed now * fix argument out of range issue. * catch errors when string properties are passed to extrusion modifiers * custom empty string fixed * removing an unnecessary debug.log * string lookup for properties * Add property to display description of the property. Fixes error on dictionary lookup for description. * Fix array out of bounds for filters * Check for key before adding it. * fixed the DataExplorer scene * handle invalid property selections in extrusion options and filters * cleanup variables * custom tileset fix * update changelog * fix to add layers with no properties * change filter property warning * cleanup commented section * Update scenes & prefabs * Change LocationPrefabs to POIPlacement * Move locationProvider to playground. * Remove unused folder. (#761) * Merge master develop (#773) * Release/v1.4.1 (#682) * Fix to properly show Mesh & GO modifiers in the UI * Add UI for removing/combining filters * Break classes into separate files, remove MapAPI wrapper. UnifiedMap takes over the functionality. Fix bug with filters * Add new prefabs for LocationBasedGame and CitySim * Fixes loadingPanel script to work with UnifiedMap * Trigger finished state when no vector layer is turned off. * Fix mapId for Satellite & satellite-streets * update PR template * Update UI to match design - round 1 * Add new data containers * Enable loading external configurations - take 2 (#552) * carry over changes from https://github.com/mapbox/mapbox-unity-sdk/pull/352 to latest develop * Fix the merge typo. * Integrate mapbox-ar-unity (#544) * add ARCore, ARKit, UnityARInterface * Mapbox AR code and examples * add KalmanFilter * some updated metas * fix .gitignore to not ignore parts of ARCore * add AR prefabs * fix .gitignore for .metas from temp files from docs generation * add additional properties to `Location` * add helper class for onscreen console * [wip] integrate AR * more logging for caching * MBTilesCache: Windows fix for path and filenames with +260 chars * add some logging to AbstractMap.cs * add editorconfig * debug messages around telem lib initialization * ARTableTop: test in Vienna * ProjectSettings: enable AR on Android * remove Debug messages * fix typo in TelemetryAndroid.cs file name * add layers needed for AR demo to the project settings * fix Unity's byte stripping for .Net 4.6 and IL2CPP * throw out uncessary stuff that comes with UnityARInterface and ARCore * update readme, add AR readme. * update CHANGELOG * wip integrate ar * Throw away unused ARKit stuff. * Update prefabs & scene * Add defaults options + linewidth parameter. * Add mockup for Presets UI * Adding tooltips for General, Image & Terrain sections. * Fix extra space in Terrain UI. * [WIP] Remove old map files, rename UnifiedMap to AbstractMap - working towards clean merge. * [WIP] Replace old VectorTileFactory with refactored ( VectorTileFactoryNew gets renamed) * add kalman comment * appveyor: don't use PowerShell to download docfx * Fix typo in terrain source. * New textures/materials for default building style * Merge StyleOptimizedVectorTileFactory functionality into VectorTileFactory * Updated settings to TextureSideWall * VectorLayerVisualizer refactor. * Hookup node editor with Plug & play refactor. * Add tooltips for vector section. * Add missing changes to VectorTIle.cs * add QueryTerrainHeight function to AbstractMap (#571) Looks good. * try with GPS position/heading, ignoring AR and bias * Fix compile error related to return type. (#572) minor change. * Added a API call to query height Added a API call on AbstractMap to query height at a certain latitude longitude. * Add preset defaults switching + snapMaptoZero hookup. * Changes to MapEditor. * Add code comments for LatitudeLongitudeToTileId change. (#573) * Fix compile error related to return type. * update code comments * Layer Visualizer for Building Ids (#502) * change VectorFeatureUnity and VectorLayerVisualizer classes to support buildings ids and do not render duplicates of same featuer from different tiles * add comments for an if clause in VectorFeatureUnity * Uv mapping (#503) * add uv mapping height modifier and a demo scene to show it off * fix TextureSideWallModifier to respect min_height property * fix a bug in wall segment calculation in TextureSideWallModifier where CenterSegment feature yielded long first sections fix a bug in PolygonModifier where it doesn't create tangents fix wrong asset bindings * fix an issue where TextureSideWallModifier doesn't take atlas section height into consideration * add a 8 building texture atlas * add new texture from random google images * fix a bug where bottomOfMidUv was calculated wrong * Fix formatting. * Add atlas texturing modifier into Plug & play UI. * Remove presets from map * work on DeviceLocationProvider, AutomaticSyncScene: size of player shows hdop, remove some debug statements * Add parameters to hookup Globe terrain factory. * Mapbox styles - MapboxStyles shader for layer colorization, AtlasTemplateGenerator for creating template images from AtlasInfo files, various scripts for assisting with building colorization. * Set defaults for all properties * Add API calls for layers * Renamed AddColorizeMapboxStyles.cs to MapboxStylesColorModifier.cs to better match existing nomenclature. Refactored MapboxStylesColorModifier.cs: Run method no longer adds ColorizeMapboxStyles.cs monobehaviour to VectorEntity.GameObject; Run method now includes all logic for color selection and material property setting previously found in ColorizeMapboxStyles.cs; utilizes VectorEntity's cached MeshRenderer component to set colors. Deleted ColorizeMapboxStyles.cs and ColorizeMapboxStylesEditor.cs. * Add custom option to primitive type - for fully custom modifier stack. * Hook up scriptable pale…
1 parent 4d11d7a commit 488cf93

39 files changed

+652
-230
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Mapbox-unity-sdk
2-
### For Unity 2017.1+
2+
### For Unity 2017.1.2+
33

44
**AR support requires Unity 2017.3+, Android 7+ (Nougat), iOS 11.3**
55

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ public bool Equals(UnwrappedTileId other)
6262

6363
public override int GetHashCode()
6464
{
65-
return X ^ Y ^ Z;
65+
return (X << 6) ^ (Y << 16) ^ (Z << 8);
66+
//return X ^ Y ^ Z;
6667
}
6768

6869
public override bool Equals(object obj)

sdkproject/Assets/Mapbox/Examples/0_PrefabScenes/Location-basedGame.unity

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ OcclusionCullingSettings:
1313
--- !u!104 &2
1414
RenderSettings:
1515
m_ObjectHideFlags: 0
16-
serializedVersion: 8
16+
serializedVersion: 9
1717
m_Fog: 0
1818
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
1919
m_FogMode: 3
@@ -39,6 +39,7 @@ RenderSettings:
3939
m_CustomReflection: {fileID: 0}
4040
m_Sun: {fileID: 0}
4141
m_IndirectSpecularColor: {r: 0.4465785, g: 0.49641252, b: 0.574817, a: 1}
42+
m_UseRadianceAmbientProbe: 0
4243
--- !u!157 &3
4344
LightmapSettings:
4445
m_ObjectHideFlags: 0
@@ -54,11 +55,10 @@ LightmapSettings:
5455
m_EnableBakedLightmaps: 1
5556
m_EnableRealtimeLightmaps: 1
5657
m_LightmapEditorSettings:
57-
serializedVersion: 9
58+
serializedVersion: 10
5859
m_Resolution: 2
5960
m_BakeResolution: 40
60-
m_TextureWidth: 1024
61-
m_TextureHeight: 1024
61+
m_AtlasSize: 1024
6262
m_AO: 0
6363
m_AOMaxDistance: 1
6464
m_CompAOExponent: 1
@@ -437,6 +437,11 @@ Prefab:
437437
propertyPath: m_SizeDelta.x
438438
value: 0
439439
objectReference: {fileID: 0}
440+
- target: {fileID: 224857786874416376, guid: 98be219873e6d4dffb5949746f515a33,
441+
type: 2}
442+
propertyPath: m_AnchoredPosition.y
443+
value: 0.000015258789
444+
objectReference: {fileID: 0}
440445
m_RemovedComponents: []
441446
m_ParentPrefab: {fileID: 100100000, guid: 98be219873e6d4dffb5949746f515a33, type: 2}
442447
m_IsPrefabParent: 0
@@ -511,6 +516,16 @@ Prefab:
511516
propertyPath: _options.tileMaterial
512517
value:
513518
objectReference: {fileID: 2100000, guid: b9f23e9bce724fa4daac57ecded470b8, type: 2}
519+
- target: {fileID: 114105500206378512, guid: 35ce2bb4caba9434db5e656796b632b1,
520+
type: 2}
521+
propertyPath: _options.extentOptions.rangeAroundTransformOptions.visibleBuffer
522+
value: 1
523+
objectReference: {fileID: 0}
524+
- target: {fileID: 114105500206378512, guid: 35ce2bb4caba9434db5e656796b632b1,
525+
type: 2}
526+
propertyPath: _options.extentOptions.rangeAroundTransformOptions.disposeBuffer
527+
value: 1
528+
objectReference: {fileID: 0}
514529
m_RemovedComponents: []
515530
m_ParentPrefab: {fileID: 100100000, guid: 35ce2bb4caba9434db5e656796b632b1, type: 2}
516531
m_IsPrefabParent: 0

sdkproject/Assets/Mapbox/Examples/1_DataExplorer/DataExplorer.unity

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ OcclusionCullingSettings:
1313
--- !u!104 &2
1414
RenderSettings:
1515
m_ObjectHideFlags: 0
16-
serializedVersion: 8
16+
serializedVersion: 9
1717
m_Fog: 0
1818
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
1919
m_FogMode: 3
@@ -39,6 +39,7 @@ RenderSettings:
3939
m_CustomReflection: {fileID: 0}
4040
m_Sun: {fileID: 0}
4141
m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1}
42+
m_UseRadianceAmbientProbe: 0
4243
--- !u!157 &3
4344
LightmapSettings:
4445
m_ObjectHideFlags: 0
@@ -54,11 +55,10 @@ LightmapSettings:
5455
m_EnableBakedLightmaps: 1
5556
m_EnableRealtimeLightmaps: 1
5657
m_LightmapEditorSettings:
57-
serializedVersion: 9
58+
serializedVersion: 10
5859
m_Resolution: 2
5960
m_BakeResolution: 40
60-
m_TextureWidth: 1024
61-
m_TextureHeight: 1024
61+
m_AtlasSize: 1024
6262
m_AO: 0
6363
m_AOMaxDistance: 1
6464
m_CompAOExponent: 1
@@ -331,7 +331,7 @@ MonoBehaviour:
331331
disposeBuffer: 0
332332
placementOptions:
333333
placementType: 1
334-
snapMapToZero: 1
334+
snapMapToZero: 0
335335
scalingOptions:
336336
scalingType: 1
337337
unityTileSize: 100
@@ -3282,7 +3282,7 @@ Prefab:
32823282
- target: {fileID: 224857786874416376, guid: 98be219873e6d4dffb5949746f515a33,
32833283
type: 2}
32843284
propertyPath: m_AnchoredPosition.y
3285-
value: 0.000015258789
3285+
value: 0
32863286
objectReference: {fileID: 0}
32873287
- target: {fileID: 114731470950229392, guid: 98be219873e6d4dffb5949746f515a33,
32883288
type: 2}

sdkproject/Assets/Mapbox/Examples/1_DataExplorer/InteractiveStyledVectorMap.unity

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1912,62 +1912,62 @@ Prefab:
19121912
- target: {fileID: 224907993215804030, guid: 98be219873e6d4dffb5949746f515a33,
19131913
type: 2}
19141914
propertyPath: m_AnchorMax.x
1915-
value: 0
1915+
value: 1
19161916
objectReference: {fileID: 0}
19171917
- target: {fileID: 224907993215804030, guid: 98be219873e6d4dffb5949746f515a33,
19181918
type: 2}
19191919
propertyPath: m_AnchorMax.y
1920-
value: 0
1920+
value: 1
19211921
objectReference: {fileID: 0}
19221922
- target: {fileID: 224835413515161394, guid: 98be219873e6d4dffb5949746f515a33,
19231923
type: 2}
19241924
propertyPath: m_AnchorMin.y
1925-
value: 0
1925+
value: 1
19261926
objectReference: {fileID: 0}
19271927
- target: {fileID: 224835413515161394, guid: 98be219873e6d4dffb5949746f515a33,
19281928
type: 2}
19291929
propertyPath: m_AnchorMax.y
1930-
value: 0
1930+
value: 1
19311931
objectReference: {fileID: 0}
19321932
- target: {fileID: 224835413515161394, guid: 98be219873e6d4dffb5949746f515a33,
19331933
type: 2}
19341934
propertyPath: m_AnchoredPosition.x
1935-
value: 0
1935+
value: 116.5
19361936
objectReference: {fileID: 0}
19371937
- target: {fileID: 224835413515161394, guid: 98be219873e6d4dffb5949746f515a33,
19381938
type: 2}
19391939
propertyPath: m_AnchoredPosition.y
1940-
value: 0
1940+
value: -69.706314
19411941
objectReference: {fileID: 0}
19421942
- target: {fileID: 224835413515161394, guid: 98be219873e6d4dffb5949746f515a33,
19431943
type: 2}
19441944
propertyPath: m_SizeDelta.x
1945-
value: 0
1945+
value: 213
19461946
objectReference: {fileID: 0}
19471947
- target: {fileID: 224835413515161394, guid: 98be219873e6d4dffb5949746f515a33,
19481948
type: 2}
19491949
propertyPath: m_SizeDelta.y
1950-
value: 0
1950+
value: 119.41262
19511951
objectReference: {fileID: 0}
19521952
- target: {fileID: 224857786874416376, guid: 98be219873e6d4dffb5949746f515a33,
19531953
type: 2}
19541954
propertyPath: m_SizeDelta.y
1955-
value: 0
1955+
value: 139.41263
19561956
objectReference: {fileID: 0}
19571957
- target: {fileID: 224907856650798614, guid: 98be219873e6d4dffb5949746f515a33,
19581958
type: 2}
19591959
propertyPath: m_AnchorMax.x
1960-
value: 0
1960+
value: 1
19611961
objectReference: {fileID: 0}
19621962
- target: {fileID: 224907856650798614, guid: 98be219873e6d4dffb5949746f515a33,
19631963
type: 2}
19641964
propertyPath: m_AnchorMax.y
1965-
value: 0
1965+
value: 1
19661966
objectReference: {fileID: 0}
19671967
- target: {fileID: 224907856650798614, guid: 98be219873e6d4dffb5949746f515a33,
19681968
type: 2}
19691969
propertyPath: m_SizeDelta.x
1970-
value: 0
1970+
value: -17
19711971
objectReference: {fileID: 0}
19721972
- target: {fileID: 114603753021256032, guid: 98be219873e6d4dffb5949746f515a33,
19731973
type: 2}
@@ -2003,7 +2003,7 @@ Prefab:
20032003
- target: {fileID: 224857786874416376, guid: 98be219873e6d4dffb5949746f515a33,
20042004
type: 2}
20052005
propertyPath: m_AnchoredPosition.y
2006-
value: 0
2006+
value: -0.000015258789
20072007
objectReference: {fileID: 0}
20082008
- target: {fileID: 114731470950229392, guid: 98be219873e6d4dffb5949746f515a33,
20092009
type: 2}

sdkproject/Assets/Mapbox/Examples/1_DataExplorer/TrafficAndDirections.unity

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2348,47 +2348,47 @@ Prefab:
23482348
- target: {fileID: 224907993215804030, guid: 98be219873e6d4dffb5949746f515a33,
23492349
type: 2}
23502350
propertyPath: m_AnchorMax.x
2351-
value: 0
2351+
value: 1
23522352
objectReference: {fileID: 0}
23532353
- target: {fileID: 224907993215804030, guid: 98be219873e6d4dffb5949746f515a33,
23542354
type: 2}
23552355
propertyPath: m_AnchorMax.y
2356-
value: 0
2356+
value: 1
23572357
objectReference: {fileID: 0}
23582358
- target: {fileID: 224835413515161394, guid: 98be219873e6d4dffb5949746f515a33,
23592359
type: 2}
23602360
propertyPath: m_AnchorMin.y
2361-
value: 0
2361+
value: 1
23622362
objectReference: {fileID: 0}
23632363
- target: {fileID: 224835413515161394, guid: 98be219873e6d4dffb5949746f515a33,
23642364
type: 2}
23652365
propertyPath: m_AnchorMax.y
2366-
value: 0
2366+
value: 1
23672367
objectReference: {fileID: 0}
23682368
- target: {fileID: 224835413515161394, guid: 98be219873e6d4dffb5949746f515a33,
23692369
type: 2}
23702370
propertyPath: m_AnchoredPosition.x
2371-
value: 0
2371+
value: 116.5
23722372
objectReference: {fileID: 0}
23732373
- target: {fileID: 224835413515161394, guid: 98be219873e6d4dffb5949746f515a33,
23742374
type: 2}
23752375
propertyPath: m_AnchoredPosition.y
2376-
value: 0
2376+
value: -88.09157
23772377
objectReference: {fileID: 0}
23782378
- target: {fileID: 224835413515161394, guid: 98be219873e6d4dffb5949746f515a33,
23792379
type: 2}
23802380
propertyPath: m_SizeDelta.x
2381-
value: 0
2381+
value: 213
23822382
objectReference: {fileID: 0}
23832383
- target: {fileID: 224835413515161394, guid: 98be219873e6d4dffb5949746f515a33,
23842384
type: 2}
23852385
propertyPath: m_SizeDelta.y
2386-
value: 0
2386+
value: 156.18314
23872387
objectReference: {fileID: 0}
23882388
- target: {fileID: 224857786874416376, guid: 98be219873e6d4dffb5949746f515a33,
23892389
type: 2}
23902390
propertyPath: m_SizeDelta.y
2391-
value: 0
2391+
value: 176.18314
23922392
objectReference: {fileID: 0}
23932393
- target: {fileID: 224907856650798614, guid: 98be219873e6d4dffb5949746f515a33,
23942394
type: 2}
@@ -2441,7 +2441,7 @@ Prefab:
24412441
- target: {fileID: 224857786874416376, guid: 98be219873e6d4dffb5949746f515a33,
24422442
type: 2}
24432443
propertyPath: m_AnchoredPosition.y
2444-
value: -0.000015258789
2444+
value: 0
24452445
objectReference: {fileID: 0}
24462446
- target: {fileID: 114731470950229392, guid: 98be219873e6d4dffb5949746f515a33,
24472447
type: 2}
@@ -2559,6 +2559,10 @@ Prefab:
25592559
value:
25602560
objectReference: {fileID: 11400000, guid: 02a98fd6de7af4e4985b970acb849e8b,
25612561
type: 2}
2562+
- target: {fileID: 1393483683185582, guid: b95c449128f3b44bca8b83258c669aa5, type: 2}
2563+
propertyPath: m_IsActive
2564+
value: 1
2565+
objectReference: {fileID: 0}
25622566
m_RemovedComponents: []
25632567
m_ParentPrefab: {fileID: 100100000, guid: b95c449128f3b44bca8b83258c669aa5, type: 2}
25642568
m_IsPrefabParent: 0
@@ -2615,15 +2619,15 @@ Prefab:
26152619
m_Modifications:
26162620
- target: {fileID: 4049744316354048, guid: 8f623e0b3327a1b4bbee73a6363ad280, type: 2}
26172621
propertyPath: m_LocalPosition.x
2618-
value: -242.22789
2622+
value: -158.8
26192623
objectReference: {fileID: 0}
26202624
- target: {fileID: 4049744316354048, guid: 8f623e0b3327a1b4bbee73a6363ad280, type: 2}
26212625
propertyPath: m_LocalPosition.y
26222626
value: -8.777344
26232627
objectReference: {fileID: 0}
26242628
- target: {fileID: 4049744316354048, guid: 8f623e0b3327a1b4bbee73a6363ad280, type: 2}
26252629
propertyPath: m_LocalPosition.z
2626-
value: 231.72803
2630+
value: 227.7
26272631
objectReference: {fileID: 0}
26282632
- target: {fileID: 4049744316354048, guid: 8f623e0b3327a1b4bbee73a6363ad280, type: 2}
26292633
propertyPath: m_LocalRotation.x
@@ -2649,6 +2653,14 @@ Prefab:
26492653
propertyPath: m_Name
26502654
value: Waypoint1
26512655
objectReference: {fileID: 0}
2656+
- target: {fileID: 4924304480808200, guid: 8f623e0b3327a1b4bbee73a6363ad280, type: 2}
2657+
propertyPath: m_LocalPosition.x
2658+
value: 0
2659+
objectReference: {fileID: 0}
2660+
- target: {fileID: 4924304480808200, guid: 8f623e0b3327a1b4bbee73a6363ad280, type: 2}
2661+
propertyPath: m_LocalPosition.y
2662+
value: 17.04
2663+
objectReference: {fileID: 0}
26522664
m_RemovedComponents: []
26532665
m_ParentPrefab: {fileID: 100100000, guid: 8f623e0b3327a1b4bbee73a6363ad280, type: 2}
26542666
m_IsPrefabParent: 0

0 commit comments

Comments
 (0)