Skip to content

Commit

Permalink
Add missing map options.
Browse files Browse the repository at this point in the history
  • Loading branch information
francois2metz committed May 21, 2024
1 parent 5f9a231 commit 402c7e9
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/components/map.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {
type MapEventType,
type RequestTransformFunction,
type StyleSpecification,
type CameraUpdateTransformFunction,
} from "maplibre-gl";
import {
componentIdSymbol,
Expand Down Expand Up @@ -297,6 +298,10 @@ export default defineComponent({
type: Function as PropType<RequestTransformFunction>,
default: defaults.transformRequest,
},
transformCameraUpdate: {
type: Function as PropType<CameraUpdateTransformFunction>,
default: defaults.transformCameraUpdate,
},
touchZoomRotate: {
type: Boolean as PropType<boolean>,
default: () => defaults.touchZoomRotate,
Expand All @@ -305,6 +310,7 @@ export default defineComponent({
type: Boolean as PropType<boolean>,
default: () => defaults.touchPitch,
},

/**
* The initial zoom level of the map. If zoom is not specified in the constructor options, MapLibre GL JS will look for it in the map's style object. If it is not specified in the style, either, it will default to 0. Default Value `0`
* @model
Expand All @@ -325,6 +331,14 @@ export default defineComponent({
type: Number as PropType<number>,
default: () => defaults.pixelRatio,
},
/**
* If false, style validation will be skipped. Useful in production environment.
* Default value true
*/
validateStyle: {
type: Boolean as PropType<boolean>,
default: () => defaults.validateStyle,
},
cooperativeGestures: {
type: [Boolean, Object] as PropType<boolean | GestureOptions>,
default: () => defaults.cooperativeGestures,
Expand Down

0 comments on commit 402c7e9

Please sign in to comment.