Trimble Layers
Add specialized layers to the map, ranging from weather alerts to 3D buildings.
Sample code
import { Camera, Map, TrimbleMaps } from "@trimblemaps/maps-react-native";
<Map
mapStyle={TrimbleMaps.StyleURL.MobileDay}
style={{ flex: 1 }}
showsTraffic
showsWeatherRadar
shows3dBuildings
showsPoi
showsTruckRestrictions
truckRestrictionsFilter={{ categories: ["hazmat"] }}
>
<Camera initialViewState={{ center: [-74.006, 40.7128], zoom: 14, pitch: 45 }} />
</Map>
See Trimble layers for the full list of layer props and imperative methods.