How is your experience with the OutSystems Community?
8
Views
4
Comments
[Leaflet] [ODC] Error OS-CLRT-00000 when navigating away from a screen using Leaflet
Question
Leaflet
Forge asset by OutSystems Champions

Hi everyone,

I am using the Leaflet component from the Forge in ODC. While the map works correctly while the screen is active, a crash occurs specifically when navigating to another screen. This issue started appearing recently without any changes to the core logic of my application.

Error Code: OS-CLRT-00000 - Delete of an unqualified identifier in strict mode.

Context:

  • The error is triggered during the screen transition.

  • It seems to be related to a cleanup script (likely in the OnDestroy event) where a variable is being deleted incorrectly for JavaScript "Strict Mode".

  • The map itself functions perfectly until the moment of navigation.

I haven't made any changes to the implementation, and it was working fine until recently, so it seems like a regression or an issue with the component's internal cleanup logic.

Has anyone else encountered this or knows a workaround?

Thanks in advance!

2022-11-12 11-28-30
Gonçalo Martins
Staff

Hi @Paula Rosa González Páez 

To help the community, helping you could you please share an oml with your use case being replicated (without any business information ofc) so we can try to look into the same use case? 
It would be super useful. Also, please share what you've already tried.

Cheers,
GM

UserImage.jpg
Paula Rosa González Páez

Hi,

To replicate the error, what you need to do is, from the TestMap screen, press the "Go to next screen" button and the error will then appear on screen.

The error occurs during navigation from the screen containing the map to another screen (in this case TestScreen).

ErrorMap.oml
UserImage.jpg
Paula Rosa González Páez

Hi,

To replicate the error, what you need to do is, from the TestMap screen, press the "Go to next screen" button and the error will then appear on screen.

The error occurs during navigation from the screen containing the map to another screen (in this case TestScreen).

ErrorMap.oml
2022-11-12 11-28-30
Gonçalo Martins
Staff

Hi @Paula Rosa González Páez 

The error is in the component's code, so it needs to be the owner to fix it.
However, is there any reason why you're not using the Leaflet map from the supported component OutSystems Maps? 

Cheers,
GM

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.