
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@mapcomponents/three
Advanced tools
This library provides React components to easily integrate [Three.js](https://threejs.org/) 3D content into [MapLibre GL JS](https://maplibre.org/) maps using [@mapcomponents/react-maplibre](https://github.com/mapcomponents/react-map-components-maplibre).
This library provides React components to easily integrate Three.js 3D content into MapLibre GL JS maps using @mapcomponents/react-maplibre.
Install the package and its peer dependencies:
npm install @mapcomponents/three @mapcomponents/react-maplibre
To use @mapcomponents/three, you need to wrap your 3D layers with the ThreeProvider component. This provider initializes the Three.js scene, camera, and renderer, and registers a custom layer within the MapLibre map.
Here is a simple example of how to render a 3D model on a map:
import React from 'react';
import { MapComponentsProvider, MapLibreMap } from '@mapcomponents/react-maplibre';
import { ThreeProvider, MlThreeModelLayer } from '@mapcomponents/three';
const App = () => {
return (
<MapComponentsProvider>
<ThreeProvider id="three-scene-1">
<MapLibreMap
options={{
style: 'https://demotiles.maplibre.org/style.json',
center: [13.404954, 52.520008],
zoom: 15,
pitch: 60
}}
/>
<MlThreeModelLayer
url="https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Models/master/2.0/Duck/glTF-Binary/Duck.glb"
mapPosition={[13.404954, 52.520008]}
scale={10}
/>
</ThreeProvider>
</MapComponentsProvider>
);
};
export default App;
Run nx test @mapcomponents/three to execute the unit tests via Vitest.
FAQs
This library provides React components to easily integrate [Three.js](https://threejs.org/) 3D content into [MapLibre GL JS](https://maplibre.org/) maps using [@mapcomponents/react-maplibre](https://github.com/mapcomponents/react-map-components-maplibre).
The npm package @mapcomponents/three receives a total of 33 weekly downloads. As such, @mapcomponents/three popularity was classified as not popular.
We found that @mapcomponents/three demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.