diff --git a/src/street-utils.js b/src/street-utils.js index 69f30c1b4..004749a4e 100644 --- a/src/street-utils.js +++ b/src/street-utils.js @@ -60,7 +60,7 @@ function newScene(clearMetaData=true, clearUrlHash=true, addDefaultStreet=true) checkOrCreateEntity("reference-layers", referenceLayersHTML); // update sceneGraph - Events.emit('entitycreated', streetContainerEl.sceneEl); + streetContainerEl.emit('entitycreated', streetContainerEl.sceneEl); // clear metadata if (clearMetaData) {