Description
Google Maps ThreeJS Overlay View and Utilities is a JavaScript library for adding three.js objects to a Google Map. It provides a ThreeJSOverlayView class that extends Google's WebGLOverlayView, along with utility functions that convert latitude and longitude into the vector coordinates three.js uses. The scene is a right-handed, z-up coordinate system measured in meters. The y-axis points true north and the x-axis points east. The anchor point and orientation can be set in the constructor, or with the setAnchor and setUpAxis methods. The package is published on npm as @googlemaps/three. You can also load it directly in an HTML page from unpkg, in which case three.js must load first. Or you can use ES module imports with an import map, which the README says works with any CDN or self-hosted files. For browsers without import map support, it suggests the es-module-shims package. The README points to reference documentation for the full API.…
Highlights
- ThreeJSOverlayView class built on WebGLOverlayView
- Converts latitude and longitude to three.js vectors
- Available on npm as @googlemaps/three
- Load from unpkg, a script tag or ES module imports
Ratings & Reviews
No ratings yet
Be the first to rate JS Three.
People also visit
JS Three FAQ
What is this library for?
It adds three.js objects to a Google Map. It does this with a ThreeJSOverlayView class that extends google.maps.WebGLOverlayView.
How do I install it?
Install the npm package @googlemaps/three. Alternatively, load the package from unpkg or another CDN in an HTML page, and load three.js before it.
How do coordinates work?
The scene is a right-handed, z-up system measured in meters. The y-axis points true north and the x-axis points east. A point at (0, 50, 10) sits 10 meters above the ground and 50 meters east of the anchor point.
Can I use it with a bundler?
Yes. The README says you can use three.js and ThreeJSOverlayView the way you would with a bundler. For browsers without import map support, it suggests the es-module-shims package.
Where is the source?
The source is public on GitHub at googlemaps/js-three, and the README links to reference documentation for the full API.
What are the best JS Three alternatives?
Popular alternatives to JS Three include Maptalks.three, Three Globe and Cesium.js. See all JS Three alternatives








