How to add esri leaflet related tables results to map

4892
11
Jump to solution
10-28-2014 12:15 PM
joepublic
New Contributor III

Robert,

I did get the updated plugin from  github!! and thankr for showing me how to get the countries based on the button clicked on.  I have been playing with it so I can understand what you did.

The next question I have is: How do I add the results of rquery.run(error, response,raw ) to my map (i,e display the countries to my map).

Do I wrap the queries like so:

countries = new L.esri.featureLayer(featureURL,

{

     query statements and execution goes here

}.addTo(map)

See the file relatedtab3.html attached to the original post

Thanks

0 Kudos
11 Replies
RobertScheitlin__GISP
MVP Emeritus

Joe,

  Here is that issue fixed and some other aesthetic changes. The issue was that the countries layer is defined as global and then it was getting recreated re-var'd in search button click.

0 Kudos
joepublic
New Contributor III

Robert,

One of the downsides of copy and pasting!! Thanks for all your help!!

Now that I have a working version, I plan to review the code to make is better

So I may have more questions

Chris

0 Kudos