File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' svelte-maplibre ' : minor
3
+ ---
4
+
5
+ Exposed the bearingSnap property in the maps props to allow control over the default automatic snap-to-north
Original file line number Diff line number Diff line change 34
34
zoom? : number | undefined ;
35
35
pitch? : number ;
36
36
bearing? : number ;
37
+ bearingSnap? : number ;
37
38
bounds? : LngLatBoundsLike | undefined ;
38
39
/** Set to true to track the map viewport in the URL hash. If the URL hash is set, that overrides initial viewport settings. */
39
40
hash? : boolean ;
111
112
zoom = $bindable (undefined ),
112
113
pitch = $bindable (0 ),
113
114
bearing = $bindable (0 ),
115
+ bearingSnap = 7 ,
114
116
bounds = $bindable (undefined ),
115
117
hash = false ,
116
118
updateHash = (url ) => {
247
249
zoom ,
248
250
pitch ,
249
251
bearing ,
252
+ bearingSnap ,
250
253
minZoom ,
251
254
maxZoom ,
252
255
minPitch ,
You can’t perform that action at this time.
0 commit comments