Repository navigation
Highlights
- Landmarks Module (preview), new
MapboxLandmarksModuleassembly- 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.gltfastandcom.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,LandmarkTourLandmarkTourflies the camera between famous landmarks.
- Traffic-aware routing, Directions API
DirectionResource.Annotationsrequests distance, duration, speed, congestion and max-speed per segment.RoutingProfile.DrivingTrafficprofile;CongestionLevelbuckets congestion for coloring.- Directions demo draws the route colored by traffic.
- Minimap,
Minimap.prefabin 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
LocationBasedGamesample. - Shows the map's imagery, terrain height, or a different style through a Data Only custom imagery layer.
- 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
- Custom imagery modes,
CustomApiLayerModuleScript.ModeDataOnlyfetches without drawing;DisplayNonBlockingnever delays a tile;DataZoomOffsetfetches coarser tiles.
- Components module settings in the Inspector: zoom range, data-level clamp and cache size, no subclass needed.
Breaking changes
BboxonGeocodingApi.Featurenow carries latitude and longitude in the correct order. Code that compensated for the swapped values must drop that workaround.ILayerModule.Initializetakes anITileLifecycleSourceparameter, andITileLifecycleObserveris removed. Affects custom modules and subclasses that overrideInitialize.CanonicalTileId.ParentAtno longer modifies the tile it is called on. UseMoveToParent()if you relied on that.VectorData.VectorTileDatais removed. Subclasses that read it afterMeshGenerationshould decodeDatathemselves.- Removed public members that never returned data:
ByteArrayTile.Data,LayerNames(),GetLayer(),SetVectorFromCache()andDispose(bool);Source<T>.DataFetched,DataFetchedWithCallback,FetchingErrorandSetMeshGenerationMethod;TileErrorEventArgs;UnityTileVectorContainerandUnityMapTile.VectorContainer.
Security
access_tokenandskuare now appended only to requests whose host ismapbox.comor 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.