Hi everyone, I'm new at javascript and developping widgets for WAB for developpers. js widget
I am currently trying to develop an off-panel widget, which aim would be geolocating the user and creating a point in a layer I previously published on ArcGIS Server as a Feature Service. (Works like a panic button)
I am having some trouble at finding out what could be wrong with this.addGraphic (line 65) at the function zoomToLocation.
Console says the following:
Uncaught TypeError: this.addGraphic is not a function
at zoomToLocation (Widget.js?wab_dv=2.15:65)
Here is my code:
define([
'dojo/_base/declare',
'jimu/BaseWidget',