maptalks.three
Advanced tools
Comparing version 0.8.0 to 0.9.0
22
index.js
@@ -18,2 +18,4 @@ import './dist/worker'; | ||
import ThreeVectorTileLayer from './src/ThreeVectorTileLayer'; | ||
import Terrain from './src/Terrain'; | ||
import TerrainVectorTileLayer from './src/TerrainVectorTileLayer'; | ||
@@ -348,5 +350,25 @@ const options = { | ||
/** | ||
* | ||
* @param {*} extent | ||
* @param {*} options | ||
* @param {*} material | ||
*/ | ||
toTerrain(extent, options, material) { | ||
return new Terrain(extent, options, material, this); | ||
} | ||
/** | ||
* | ||
* @param {*} url | ||
* @param {*} options | ||
* @param {*} material | ||
*/ | ||
toTerrainVectorTileLayer(url, options, material) { | ||
return new TerrainVectorTileLayer(url, options, material, this); | ||
} | ||
clearMesh() { | ||
@@ -353,0 +375,0 @@ const scene = this.getScene(); |
{ | ||
"name": "maptalks.three", | ||
"version": "0.8.0", | ||
"version": "0.9.0", | ||
"description": "A maptalks Layer to render with THREE.js.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
1156734
17561