From 7d8ae33bf9af98d92e3a17efb4f8e1f22bcdef38 Mon Sep 17 00:00:00 2001 From: Caleb Schwind <46329268+cschwinderg@users.noreply.github.com> Date: Wed, 20 Dec 2023 14:16:29 -0500 Subject: [PATCH] #128 Fixed bug raised by sonarcloud. --- app/app/public/js/esriMap.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/app/app/public/js/esriMap.js b/app/app/public/js/esriMap.js index 32b5b5d..2775eda 100644 --- a/app/app/public/js/esriMap.js +++ b/app/app/public/js/esriMap.js @@ -3,18 +3,13 @@ define([ 'esri/views/MapView', 'esri/Graphic', 'esri/geometry/Point', -], function ( - Map, - MapView, - Graphic, - Point, -) { +], function (EsriMap, MapView, Graphic, Point) { let map = null; let view = null; function init() { // Create the Map with an initial basemap - map = new Map({ + map = new EsriMap({ basemap: 'topo-vector', }); // Create the MapView and reference the Map in the instance