Commit 18fd9512 authored by Pithon Kabiro's avatar Pithon Kabiro
Browse files

Edit function documentation

parent a1022252
...@@ -60,6 +60,14 @@ const loadTiles = function (urlTiles) { ...@@ -60,6 +60,14 @@ const loadTiles = function (urlTiles) {
throw err; throw err;
}); });
}); });
// Override the default home homeButton; doesn't work perfectly
viewer.homeButton.viewModel.command.beforeExecute.addEventListener(function (
e
) {
e.cancel = true;
viewer.scene.camera.flyToBoundingSphere(tileset.boundingSphere);
});
}; };
/** /**
......
...@@ -83,6 +83,7 @@ export const getDatastreamIdFromBuildingNumber = function ( ...@@ -83,6 +83,7 @@ export const getDatastreamIdFromBuildingNumber = function (
/** /**
* Create URL to fetch the Observations corresponding to a provided Datastream * Create URL to fetch the Observations corresponding to a provided Datastream
* @param {String} baseUrl Base URl of the STA server
* @param {Number} datastreamID - Integer representing the Datastream ID * @param {Number} datastreamID - Integer representing the Datastream ID
* @returns {String} URL string for fetching the Observations corresponding to a Datastream * @returns {String} URL string for fetching the Observations corresponding to a Datastream
*/ */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment