Hi,
I'm trying to display feature attributes in a popup.
To do that, I'm mixing both tutorials:
https://developers.arcgis.com/maplibre-gl-js/layers/add-a-feature-layer-as-geojson/
and
https://developers.arcgis.com/maplibre-gl-js/layers/display-a-popup/
However, the tutorial to display a popup, uses vector tiles, and I would like to display a popup in a geojson feature layer. Please take a look at this CodePen:
https://codepen.io/PedroNGV/pen/LYJqgQN
The popup opens, but the attributes are undefined.
Any hint? Thanks!
Best regards,
Pedro
Solved! Go to Solution.
Sorry, my fault, I was missing &outFields=* parameter.
It works now!