
Security Fundamentals
Obfuscation 101: Unmasking the Tricks Behind Malicious Code
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.
three-geojson-geometry
Advanced tools
A ThreeJS geometry class for stroking GeoJSON objects on a sphere.
import { GeoJsonGeometry } from 'three-geojson-geometry';
or
const { GeoJsonGeometry } = require('three-geojson-geometry');
or even
<script src="//unpkg.com/three-geojson-geometry"></script>
then
const myLine = new THREE.Line(
new THREE.GeoJsonGeometry(geoJson),
new THREE.LineBasicMaterial({ color: 'blue' })
);
GeoJsonGeometry(geoJson: GeoJson object, radius: Float, resolution: Float)
geometry
object. It's recommended to split the geometries at the anti-meridian.1
.5
..parameters: Object
An object with a property for each of the constructor parameters. Any modification after instantiation does not change the geometry.
When generating Polygon
or MultiPolygon
geometries, two groups are provided to which different materials can be applied.
Different geoJson types should be represented using different ThreeJS object types:
Point
and MultiPoints
- Use THREE.Points
LineString
and Polygon
- Use THREE.Line
MultiLineString
and MultiPolygon
- Use THREE.LineSegments
FAQs
ThreeJS geometry for stroking GeoJSON objects on a sphere
We found that three-geojson-geometry demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Security Fundamentals
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.
Security News
Join Socket for exclusive networking events, rooftop gatherings, and one-on-one meetings during BSidesSF and RSA 2025 in San Francisco.
Security News
Biome's v2.0 beta introduces custom plugins, domain-specific linting, and type-aware rules while laying groundwork for HTML support and embedded language features in 2025.