Hi all,
I am new to JavaScript API. This may sounds silly, but I was wondering in sample code Popup content in side panel, why was displayPopupContent called twice (line 103 and line 117)?
The first displayPopupContent is pretty easy to understand. But I commented out the line 117, it did not seem to affect anything.
Thank you!
Solved! Go to Solution.
Yichi,
Both lines are needed as onSetFeatures is called when you select features on the map and then onSelectionChange is used when you have selected more than one feature and you have next and previous arrows at the top of the popup.
Yichi,
Both lines are needed as onSetFeatures is called when you select features on the map and then onSelectionChange is used when you have selected more than one feature and you have next and previous arrows at the top of the popup.