mborr

TypeError: this.spatialReference is undefined

Discussion created by mborr on May 28, 2014
Latest reply on May 28, 2014 by jeff.pace
I am calling two services, but getting this error in firebug: "TypeError: this.spatialReference is undefined"


 var it = new InfoTemplate();
    it.setTitle("Low Income Housing Information");
    it.setContent("<b>Score:</b>${Score}<br/>" +
                            "<b>Name: </b>${Name}<br/>" +
        "<br><b>Address:</b> ${Address}<br>"  );
                         

  
 var a = new FeatureLayer("http://gis-server.cc.wmich.edu/harcgis/rest/services/hdream/house/MapServer/0",
  { mode: FeatureLayer.MODE_SNAPSHOT,
 infoTemplate: it,
 } );
    
 var b = new FeatureLayer("http://gis-server.cc.wmich.edu/harcgis/rest/services/hdream/kcountyborder/MapServer/1" );
 
  
  

    map.addLayer(a)
   map.addLayer(b)


Puzzled as to what this error is, and how to fix it?

Outcomes