This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as THREE from 'three' | |
import { GLTF, GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader' | |
import { setPosition } from '@/components/Mapbox/utils' | |
import MapboxGL, { LngLatLike, MercatorCoordinate } from 'mapbox-gl' | |
import { LayerConfig, ModelTransform } from './types' | |
import { FeatureCollection } from 'geojson' | |
import { Object3D } from 'three' | |
function transform(layerConfig: LayerConfig, modelConfig: { position: LngLatLike; altitude: number }, center: mapboxgl.MercatorCoordinate): THREE.Matrix4 { | |
const { modelScale, modelRotate } = layerConfig |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2019-03-20T11:14:19.906Z","extensionVersion":"v3.2.7"} |