From f54207ce200c160157600ccf97e89f12d06e1e4f Mon Sep 17 00:00:00 2001 From: Alexander Goryushkin Date: Fri, 17 May 2024 18:58:26 -0400 Subject: [PATCH] change variable name --- src/components/street-geo.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/street-geo.js b/src/components/street-geo.js index ab5b38c5d..1fba8e240 100644 --- a/src/components/street-geo.js +++ b/src/components/street-geo.js @@ -41,10 +41,10 @@ AFRAME.registerComponent('street-geo', { for (const mapType of this.mapTypes) { // create map function with name: Create - const createElementFunction = this[mapType + 'Create'].bind(this); + const createMapFunction = this[mapType + 'Create'].bind(this); if (data.maps.includes(mapType) && !this[mapType]) { // create Map element and save a link to it in this[mapType] - this[mapType] = createElementFunction(); + this[mapType] = createMapFunction(); } else if (data.maps.includes(mapType) && (updatedData.longitude || updatedData.latitude || updatedData.elevation)) { // call update map function with name: Update this[mapType + 'Update'].bind(this)();