Skip to content

interoperation with leaflet 1.1.3 #464

@marie-r

Description

@marie-r

Dear All,

This has also been registered as an issue with dash-leaflet as it is an interaction, but I am suspecting that the root cause is an ag-grid issue. Using dash-leaflet 1.1.3 and dash-ag-grid 35.2.0 (python 3.13, dash 4.1), I am seeing issues when both components are present.

It looks like AgGrid is overwriting window.L which Leaflet assumes will contain the leaflet handle (or at least I think this is the cause, window.L is definitely being overwritten). I wrote a workaround for this for my own callbacks, but some of the built-in leaflet components are failing. The attached toy program, leaflet.py, puts up a nonsensical dummy grid and an empty map with an editcontrol.

Inclusion of the editcontrol produces the following error:

`
(This error originated from the built-in JavaScript code that runs Dash apps. Click to see the full stack trace or open your browser's console.)
TypeError: Cannot read properties of undefined (reading 'extend')
at 6269 (http://127.0.0.1:8050/_dash-component-suites/dash_leaflet/async-EditControl.ts.js:1:7816)
at l (http://127.0.0.1:8050/_dash-component-suites/dash_leaflet/dash_leaflet.v1_1_3m1751407222.js:2:269216)
at 6420 (http://127.0.0.1:8050/_dash-component-suites/dash_leaflet/async-EditControl.ts.js:1:73401)
at l (http://127.0.0.1:8050/_dash-component-suites/dash_leaflet/dash_leaflet.v1_1_3m1751407222.js:2:269216)

When the editControl is removed, everything is fine.

Thank you - Marie

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions