Skip to content

Commit 22506af

Browse files
authored
Leaflet update (#1164)
* Update Leaflet to 1.9.4 * Update leaflet-defaulticon-compatibility
1 parent 9fad774 commit 22506af

File tree

4 files changed

+78
-79
lines changed

4 files changed

+78
-79
lines changed

ipyleaflet/leaflet.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2576,7 +2576,7 @@ class Map(DOMWidget, InteractMixin):
25762576
Whether the map can be zoomed in by double clicking on it and zoomed out by double clicking while holding shift.
25772577
box_zoom: boolean, default True
25782578
Whether the map can be zoomed to a rectangular area specified by dragging the mouse while pressing the shift key
2579-
tap: boolean, default True
2579+
tap_hold: boolean, default True
25802580
Enables mobile hacks for supporting instant taps.
25812581
tap_tolerance: int, default 15
25822582
The max number of pixels a user can shift his finger during touch for it to be considered a valid tap.
@@ -2637,7 +2637,7 @@ class Map(DOMWidget, InteractMixin):
26372637
scroll_wheel_zoom = Bool(False).tag(sync=True, o=True)
26382638
double_click_zoom = Bool(True).tag(sync=True, o=True)
26392639
box_zoom = Bool(True).tag(sync=True, o=True)
2640-
tap = Bool(True).tag(sync=True, o=True)
2640+
tap_hold = Bool(True).tag(sync=True, o=True)
26412641
tap_tolerance = Int(15).tag(sync=True, o=True)
26422642
world_copy_jump = Bool(False).tag(sync=True, o=True)
26432643
close_popup_on_click = Bool(True).tag(sync=True, o=True)

js/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@
4242
"@jupyter-widgets/base": "^2 || ^3 || ^4 || ^5 || ^6",
4343
"buffer": "^6.0.3",
4444
"crypto-browserify": "^3.12.0",
45-
"leaflet": "^1.7.1",
45+
"leaflet": "^1.9.4",
4646
"leaflet-ant-path": "^1.3.0",
47-
"leaflet-defaulticon-compatibility": "^0.1.1",
47+
"leaflet-defaulticon-compatibility": "^0.1.2",
4848
"leaflet-draw": "^1.0.4",
4949
"leaflet-fullscreen": "^1.0.2",
5050
"leaflet-measure": "^3.1.0",

js/src/Map.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export class LeafletMapModel extends DOMWidgetModel {
6767
scroll_wheel_zoom: false,
6868
double_click_zoom: true,
6969
box_zoom: true,
70-
tap: true,
70+
tap_hold: true,
7171
tap_tolerance: 15,
7272
world_copy_jump: false,
7373
close_popup_on_click: true,

0 commit comments

Comments
 (0)