Skip to content

v3.2.0

Latest

Choose a tag to compare

@brnkhy brnkhy released this 20 Oct 11:03
· 2 commits to main since this release

Highlights

  • Landmarks Module (preview), new MapboxLandmarksModule assembly
    • 3D landmark buildings from the Mapbox 3D Buildings tileset, rendered through glTFast.
    • Basic buildings underneath are hidden automatically, in both the Vector and Components pipelines.
    • Sits on elevated terrain; click-to-select with LandmarkHighlightBehaviour.
    • Requires com.unity.cloud.gltfast and com.unity.meshopt.decompress. Without them the module is skipped, nothing else breaks.
    • Preview: dynamic map scaling not supported, selection is whole-mesh. See Documentation~/LandmarksModuleKnownGaps.md.
  • Three new samples: LandmarkDemo, LandmarkDemoWithVector, LandmarkTour
    • LandmarkTour flies the camera between famous landmarks.
  • Traffic-aware routing, Directions API
    • DirectionResource.Annotations requests distance, duration, speed, congestion and max-speed per segment.
    • RoutingProfile.DrivingTraffic profile; CongestionLevel buckets congestion for coloring.
    • Directions demo draws the route colored by traffic.
  • Minimap, Minimap.prefab in the imagery module
    • Drop under a Canvas, assign a map. Follows the map, a transform or a camera; rotates with the map bearing or a camera rig. Wired into the LocationBasedGame sample.
    • Shows the map's imagery, terrain height, or a different style through a Data Only custom imagery layer.
  • Custom imagery modes, CustomApiLayerModuleScript.Mode
    • DataOnly fetches without drawing; DisplayNonBlocking never delays a tile; DataZoomOffset fetches coarser tiles.
  • Components module settings in the Inspector: zoom range, data-level clamp and cache size, no subclass needed.

Breaking changes

  • Bbox on GeocodingApi.Feature now carries latitude and longitude in the correct order. Code that compensated for the swapped values must drop that workaround.
  • ILayerModule.Initialize takes an ITileLifecycleSource parameter, and ITileLifecycleObserver is removed. Affects custom modules and subclasses that override Initialize.
  • CanonicalTileId.ParentAt no longer modifies the tile it is called on. Use MoveToParent() if you relied on that.
  • VectorData.VectorTileData is removed. Subclasses that read it after MeshGeneration should decode Data themselves.
  • Removed public members that never returned data: ByteArrayTile.Data, LayerNames(), GetLayer(), SetVectorFromCache() and Dispose(bool); Source<T>.DataFetched, DataFetchedWithCallback, FetchingError and SetMeshGenerationMethod; TileErrorEventArgs; UnityTileVectorContainer and UnityMapTile.VectorContainer.

Security

  • access_token and sku are now appended only to requests whose host is mapbox.com or a subdomain, over https. Other hosts are requested without credentials. Proxy or custom endpoints that need credentials must include them in the URL template.

Full list of fixes, changes and removals: CHANGELOG.md.