Display ESRI GeoJSON popup MapLibre GL

615
1
Jump to solution
03-27-2023 02:20 AM
PedroVenancio
New Contributor II

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

0 Kudos
1 Solution

Accepted Solutions
PedroVenancio
New Contributor II

Sorry, my fault, I was missing &outFields=* parameter.

It works now!

View solution in original post

1 Reply
PedroVenancio
New Contributor II

Sorry, my fault, I was missing &outFields=* parameter.

It works now!