Visualizing HSPC data on a map requires two steps:

  1. Create a HSPCTilesModel by connecting to the data source.

  2. 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);
});