React Three Map - v1.0.9
    Preparing search index...

    Module @wendylabsinc/react-three-map/maplibre

    React Three Map - MapLibre variant

    This module provides the MapLibre GL JS integration for react-three-map. Use this when working with MapLibre GL JS and react-map-gl/maplibre.

    import "maplibre-gl/dist/maplibre-gl.css";
    import Map from "react-map-gl/maplibre";
    import { Canvas, Coordinates, useMap, coordsToVector3 } from "@wendylabsinc/react-three-map/maplibre";

    function App() {
    return (
    <Map
    initialViewState={{ latitude: 51.5074, longitude: -0.1278, zoom: 15 }}
    mapStyle="https://basemaps.cartocdn.com/gl/positron-gl-style/style.json"
    >
    <Canvas latitude={51.5074} longitude={-0.1278}>
    <mesh>
    <boxGeometry args={[100, 100, 100]} />
    <meshStandardMaterial color="red" />
    </mesh>
    </Canvas>
    </Map>
    );
    }

    Interfaces

    CompassOverlayProps

    Variables

    useMap
    Canvas

    Functions

    CompassOverlay

    References

    CanvasProps → CanvasProps
    CoordinatesProps → CoordinatesProps
    Coordinates → Coordinates
    coordsToVector3 → coordsToVector3
    Coords → Coords
    NearCoordinates → NearCoordinates
    PointInPolyhedronResult → PointInPolyhedronResult
    isPointInPolyhedron → isPointInPolyhedron
    isCoordsInPolyhedron → isCoordsInPolyhedron
    isCoordsInGeoTriangles → isCoordsInGeoTriangles
    isPointInGeoTriangles → isPointInGeoTriangles
    isPointOnSurface → isPointOnSurface
    GeoVertex → GeoVertex
    GeoTriangle → GeoTriangle
    BufferGeometryToWKTOptions → BufferGeometryToWKTOptions
    WKTToBufferGeometryOptions → WKTToBufferGeometryOptions
    extractGeoTriangles → extractGeoTriangles
    bufferGeometryToWKT → bufferGeometryToWKT
    wktToBufferGeometry → wktToBufferGeometry
    bufferGeometryToGeoTriangles → bufferGeometryToGeoTriangles
    geoTrianglesToBufferGeometry → geoTrianglesToBufferGeometry
    GeometryValidationOptions → GeometryValidationOptions
    GeometryValidationResult → GeometryValidationResult
    validatePolyhedronGeometry → validatePolyhedronGeometry
    vector3ToCoords → vector3ToCoords
    EnhancedPivotControls → EnhancedPivotControls
    PivotControlsProps → PivotControlsProps
    Compass3D → Compass3D
    Compass3DProps → Compass3DProps