AnsweredAssumed Answered

JavaScript API - Measuring Widget Issue

Question asked by ipeebles on Jul 21, 2016
Latest reply on Jul 22, 2016 by ipeebles

I have tried to add in a measuring widget to my application and cannot get it to work, unless I add in a basemap property to the map.  There isn't much code.  Here is the error I am getting in console mode:



My application code is attached.  In the past, I used the same widget (at version 3.09 but did not have any issues).


Here is a brief snipped of the main application code:


// Define the default geometry service
esriConfig.defaults.geometryService = "";


        // Map - Initial Extent

        var initialExtent = new Extent(2097523, 220046, 2189056, 275030, new SpatialReference({wkid: 102724}));


        map = new Map("map", {

         extent: initialExtent,


var measurement = new Measurement({

          map: map,

  defaultAreaUnit: Units.SQUARE_FEET,
  defaultLengthUnit: Units.FEET

        }, dom.byId("measurementDiv"));


var baseMap = new ArcGISDynamicMapServiceLayer("", {

           id: "Base Map",

           visible: true





Any ideas on what could be the issue?  I am using the same geometry and services in other apps and they are working fine.


Thank you!  Ian