Skip to content

Commit 3fb4422

Browse files
pre-commit-ci[bot]hansthengithub-actions[bot]
authored
[pre-commit.ci] pre-commit autoupdate (#2167)
* Fix pattern error * Close issue_2165 Add event handlers on the cut event * docs: Update switcher.json for v0.20.0 (#2164) Co-authored-by: hansthen <[email protected]> * Run coverage in bash * Show what files are generated * Try again * Try absolute path * Try again * Different pattern * Remove failing workflow * Try renaming before upload * Try wildcards * Use matrix name in coverage artifact * One more try before I give up * Was unable to find variable * Also upload hidden files * Cleanup * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.11.12 → v0.12.2](astral-sh/ruff-pre-commit@v0.11.12...v0.12.2) - [github.com/keewis/blackdoc: v0.3.9 → v0.4.1](keewis/blackdoc@v0.3.9...v0.4.1) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: Hans Then <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: hansthen <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent aa74da6 commit 3fb4422

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

folium/plugins/geoman.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,18 @@ class GeoMan(JSCSSMixin, MacroElement):
6464
{%- endfor %}
6565
});
6666
67+
{{ this._parent.get_name() }}.on("pm:cut", function(e) {
68+
var layer = e.layer,
69+
type = e.layerType;
70+
71+
{%- for event, handler in this.on.items() %}
72+
layer.on(
73+
"{{event}}",
74+
{{handler}}
75+
);
76+
{%- endfor %}
77+
});
78+
6779
{% endmacro %}
6880
"""
6981
)

0 commit comments

Comments
 (0)