Select to view content in your preferred language

ESRI Leaflet - Uncaught TypeError

1171
5
11-01-2022 09:31 AM
HannahSturm
Occasional Contributor

We have layer that is an map image layer and when there is not data in that layer we are receiving this error message.  The layer only gets populated when we have an outage happening otherwise, it's empty. Any ideas how to handle this error?

leaflet_error.jpg

0 Kudos
5 Replies
GavinRehkemper
Esri Contributor

Hi, thank you for the question. Could you please provide an example layer/service URL that causes this issue? Additionally, could you please provide a code sample that uses that layer that demonstrates the issue?

Thanks!

0 Kudos
HannahSturm
Occasional Contributor

@GavinRehkemper 

The here is the URL we are using: 

HannahSturm_0-1667563485666.png

The leaflet code that we are using is the following: 


L.esri.featureLayer(<Object> options)

 

0 Kudos
HannahSturm
Occasional Contributor

@GavinRehkemper or has anyone see this issue before and now of an idea?

0 Kudos
GavinRehkemper
Esri Contributor

Hi, it looks like the URL you posted is partially redacted. Can you please post a full URL to a service that the issue happens with?

0 Kudos
HannahSturm
Occasional Contributor

The first part of the URL is to our Portal.

0 Kudos