diff --git a/lib/components/map.component.ts b/lib/components/map.component.ts index b0e8bfe..ef40be5 100644 --- a/lib/components/map.component.ts +++ b/lib/components/map.component.ts @@ -22,6 +22,7 @@ import { type MapEventType, type RequestTransformFunction, type StyleSpecification, + type CameraUpdateTransformFunction, } from "maplibre-gl"; import { componentIdSymbol, @@ -297,6 +298,10 @@ export default defineComponent({ type: Function as PropType, default: defaults.transformRequest, }, + transformCameraUpdate: { + type: Function as PropType, + default: defaults.transformCameraUpdate, + }, touchZoomRotate: { type: Boolean as PropType, default: () => defaults.touchZoomRotate, @@ -305,6 +310,7 @@ export default defineComponent({ type: Boolean as PropType, 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 @@ -325,6 +331,14 @@ export default defineComponent({ type: Number as PropType, default: () => defaults.pixelRatio, }, + /** + * If false, style validation will be skipped. Useful in production environment. + * Default value true + */ + validateStyle: { + type: Boolean as PropType, + default: () => defaults.validateStyle, + }, cooperativeGestures: { type: [Boolean, Object] as PropType, default: () => defaults.cooperativeGestures,