I am trying to display custom content in this sample https://codepen.io/b2810s/pen/WNYrveg but it doesn't display or call the creator().
It looks like a bug with the API. Is there any alternative to display custom content on popup without adding graphic or feature layer?
I want to display popup with the routes near to the clickpoint. Routes will need be displayed with they hyperlink so, user can click on it and open the route details.
Solved! Go to Solution.
The 'content' property of the 'openPopup()' method doesn't list CustomContent as valid parameter type. For your use case you can just use a function that returns the HTMLElement directly:
https://codepen.io/john-grayson/pen/BaGJMvw
The 'content' property of the 'openPopup()' method doesn't list CustomContent as valid parameter type. For your use case you can just use a function that returns the HTMLElement directly:
https://codepen.io/john-grayson/pen/BaGJMvw
Thanks @JohnGrayson , that worked for me!