Skip to content

Commit 0453fa1

Browse files
committed
max pitch
1 parent cbd7d9e commit 0453fa1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎app/javascript/maplibre/map.js‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,9 @@ export async function initializeMap (divId = 'maplibre-map') {
112112
zoom: initialView().zoom, // will zoom in on map:load
113113
pitch: mapProperties.pitch,
114114
bearing: mapProperties.bearing || 0,
115-
maxPitch: 72,
115+
// Above ~70°, the top of the canvas shows sky. MapLibre 6.11 then computes a negative
116+
// maxPitchScaleFactor, and queryRenderedFeatures returns nothing, so no feature is selectable.
117+
maxPitch: 65,
116118
maxZoom: 24, // hard limit of maplibre
117119
maplibreLogo: true,
118120
hash: true, // enable hash in URL for map center/zoom

0 commit comments

Comments
 (0)