
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
threebox-map-ext
Advanced tools
A three.js plugin for Mapbox GL JS, using the custom layer feature. Provides convenient methods to manage objects in lnglat coordinates, and to synchronize the map and scene cameras.
Click here to view the document
More strict handwriting mode is adopted to solve the problem of compiling luixus
import mapboxgl from 'mapbox-gl'
import * as THREE from 'three'
import {GLTFLoader} from 'three/examples/jsm/loaders/GLTFLoader';
import {DRACOLoader} from 'three/examples/jsm/loaders/DRACOLoader';
import {Threebox} from 'threebox-map';
/*Load gltfdraco model*/
let data = {
id: "",
url: '',
origin: []
};
let _this = this;
let gltfLoader = new GLTFLoader();
let dracoLoader = new DRACOLoader();
let tb, cube;
let layer = {
id: data.id,
type: 'custom',
onAdd: function (map, mbxContext) {
tb = new Threebox(
map,
mbxContext,
{defaultLights: true}
);
let pointLight = new THREE.PointLight('red', 1000, 5000);
tb.add(pointLight);
dracoLoader.setDecoderPath('static/draco/');
gltfLoader.setDRACOLoader(dracoLoader);
gltfLoader.load(data.url, (gltf => {
cube = tb.Object3D({obj: gltf.scene});
cube.set({rotation: {x: 90, y: -180, z: 0}});
cube.setCoords(data.origin);
tb.add(cube);
}));
},
render: function (gl, matrix) {
tb.update();
}
};
_this.map.on('style.load', function () {
_this.map.addLayer(layer, 'country-label');
});
FAQs
A Mapbox GL Three.js plugin for npm
We found that threebox-map-ext demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.