When the user selects a feature on the map, I need to know which layer that feature belongs to. I've looked around a little bit through logs and on the API, but I haven't found a way to locate this. I suspect there's a simple answer, but I haven't been able to find it yet.
Solved! Go to Solution.
Hi Austin,
Take a look at this JS Fiddle. When you click on the cities feature layer, a pop-up will display showing the feature layer ID.
Hi Austin,
Take a look at this JS Fiddle. When you click on the cities feature layer, a pop-up will display showing the feature layer ID.
Your Fiddle was missing a closing "});". Fixed here.
Thanks, Ken. Thought I fixed that, must have forgotten to hit update.
Thanks a lot, I appreciate the accompanying JSFiddle. Very helpful!