Visualizing HSPC data on a map requires two steps:
-
Create a
HSPCTilesModel
by connecting to the data source. -
Use a
TileSet3DLayer
to visualize the model.
const url = "http://datamonster.myvr.net/mMap/data/pointcloud/APR/SanFrancisco/tree.hspc";
// Create a model for the HSPC dataset
HSPCTilesModel.create(url).then(function(model) {
//Create a layer for the model
const layer = new TileSet3DLayer(model);
//Add the layer to the map
map.layerTree.addChild(layer);
});