2

I see this example of how to put the contents of a popup into a sidebar, but I can't really follow it. I'm not sure how to implement it for my site, which uses feature layers hosted on ArcGIS Online, rather than a web map like the example.

It seems like the general idea is to turn off the popup, listen for selection changes, and then grab the infoWindow content and put it into a specified DIV. Am I right here?

How can I do this without using a web map?

1

What you are missing is an InfoTemplate on the FeatureLayer.

When configuring a pop-up for a layer in a WebMap, you get this "for free".

See an example of how to use InfoTemplate with a FeatureLayer

https://developers.arcgis.com/javascript/jssamples/fl_popup.html

| improve this answer | |
  • Thanks for the answer. Can you clarify the difference between popup template and info template? I've defined my popup template, but not info template. – matthewiannowlin Jan 25 '15 at 17:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.