CanvasMap
Getting Started Tutorials 3D Reference

Class CM3Geo extends CMGeo

CM3Geo Class
Handles the geospatial display of data in a 3D scene. Unlike a CMGeo, the 3d geo does not
have a background so it does not have any rendering styles.

Object Functions

Inherited From: CMGeo
ReturnsFunctionThrows
ProjectFromGeographic(TheProjector)
GetNormalFromGeographic(Long, Lat)

Object Functions

ProjectFromGeographic(TheProjector)

Set the projection for coordinate conversion

Parameters:
    TheProjector - the projector to use to project coordinates

GetNormalFromGeographic(Long, Lat)

Returns a THREE.Vector3 that contains the normal for the specified geographic coordinate.
This can be used to determine the appropriate rotation for an object on the surface of the earth

Parameters:
    Long - the longitude of the coordinate
    Lat - the lattiude of the coordinate