AnsweredAssumed Answered

Creating popups with data from a feature data service

Question asked by joepub on Jul 18, 2014
Latest reply on Jul 17, 2018 by WHoyle-esristaff

I am using esri-leaflet to visualize some data via an esri feature data service.

When I click on the map I get the error shown below:


TypeError: Argument 1 of Node.appendChild does not implement interface Node.


My spec:


var countries = new L.esri.FeatureLayer(featureURL, {

  style: function () {

return {color: "#70ca49", weight: 2,  fillOpacity: 0.3};



var popupTemplate = "<h3>{CNTRY_NAME}</h3>";



  return L.Util.template(popupTemplate,



Any idea as to what I am doing wrong?