You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -231,6 +231,7 @@ Compare two different map styles side-by-side, or compare different layers from
231
231
|`pitchend`|`{ center: [number, number], zoom: number, bearing: number, pitch: number }`| Emitted when the user finishes changing the map pitch (tilt) |
232
232
|`rotateend`|`{ center: [number, number], zoom: number, bearing: number, pitch: number }`| Emitted when the user finishes rotating the map |
233
233
|`loading-complete`|`void`| Emitted when both maps have finished loading and are ready |
234
+
|`sliderend`|`{ percentage: number, position: number }`| Emitted when the user finishes dragging the slider. `percentage` is 0-100 representing how much of mapA is visible (0% = all mapB, 100% = all mapA). `position` is the pixel position of the slider. |
234
235
235
236
236
237
@@ -285,6 +286,7 @@ A hybrid component that can work in single-map mode or comparison mode. Perfect
285
286
|`pitchend`|`{ center: [number, number], zoom: number, bearing: number, pitch: number }`| Emitted when the user finishes changing the map pitch (tilt) |
286
287
|`rotateend`|`{ center: [number, number], zoom: number, bearing: number, pitch: number }`| Emitted when the user finishes rotating the map |
287
288
|`loading-complete`|`void`| Emitted when the map(s) have finished loading and are ready |
289
+
|`sliderend`|`{ percentage: number, position: number }`| Emitted when the user finishes dragging the slider. `percentage` is 0-100 representing how much of mapA is visible (0% = all mapB, 100% = all mapA). `position` is the pixel position of the slider. |
288
290
|`map-ready-a`|`MaplibreMap`| Emitted when map A is ready, provides the map instance |
289
291
|`map-ready-b`|`MaplibreMap`| Emitted when map B is ready, provides the map instance (only in compare mode) |
0 commit comments