Capítulo 175 de 859

Chapter 175: KMZLoader

Core Idea

A loader for the KMZ format.

Code Examples

const loader = new KMZLoader();
const kmz = await loader.loadAsync( './models/kmz/Box.kmz' );
scene.add( kmz.scene );
  • What it demonstrates: Typical usage of KMZLoader.

Reference Tables

Constructor

Signature
new KMZLoader( manager : LoadingManager )

Methods

MethodDescription
.load( url : string, onLoad : function, onProgress : onProgressCallback, onError : onErrorCallback )Starts loading from the given URL and passes the loaded KMZ asset to the onLoad() callback.
.parse( data : ArrayBuffer ) : ObjectParses the given KMZ data and returns an object holding the scene.

Key Takeaways

  1. KMZLoader extends: Loader
  2. Key methods: load, parse.

Connects To