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

    Module @wendylabsinc/react-three-map

    React Three Map - Mapbox variant

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

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

    function App() {
    return (
    <Map
    mapboxAccessToken="YOUR_TOKEN"
    initialViewState={{ latitude: 40.7128, longitude: -74.006, zoom: 15 }}
    mapStyle="mapbox://styles/mapbox/dark-v11"
    >
    <Canvas latitude={40.7128} longitude={-74.006}>
    <mesh>
    <boxGeometry args={[100, 100, 100]} />
    <meshStandardMaterial color="red" />
    </mesh>
    </Canvas>
    </Map>
    );
    }

    Interfaces

    CanvasProps
    CoordinatesProps
    Coords
    PointInPolyhedronResult
    GeoVertex
    GeoTriangle
    BufferGeometryToWKTOptions
    WKTToBufferGeometryOptions
    GeometryValidationOptions
    GeometryValidationResult
    Compass3DProps
    PivotControlsProps
    CompassOverlayProps

    Variables

    Coordinates
    NearCoordinates
    Compass3D
    EnhancedPivotControls
    useMap
    Canvas

    Functions

    coordsToVector3
    isPointInPolyhedron
    isCoordsInPolyhedron
    isCoordsInGeoTriangles
    isPointInGeoTriangles
    isPointOnSurface
    extractGeoTriangles
    bufferGeometryToWKT
    wktToBufferGeometry
    bufferGeometryToGeoTriangles
    geoTrianglesToBufferGeometry
    validatePolyhedronGeometry
    vector3ToCoords
    CompassOverlay