@@ -206,7 +206,14 @@ type MapOptions = Omit<MapOptions$1, "style" | "maplibreLogo"> & {
206206 */
207207 apiKey ?: string ;
208208 /**
209- * Shows the MapTiler logo if `true`. Note that the logo is always displayed on free plan.
209+ * Shows or hides the MapTiler logo in the bottom left corner.
210+ *
211+ * For paid plans:
212+ * - `true` shows MapTiler logo
213+ * - `false` hodes MapTiler logo
214+ * - default: `false` (hide)
215+ *
216+ * For free plans: MapTiler logo always shows, regardless of the value.
210217 */
211218 maptilerLogo ?: boolean ;
212219 /**
@@ -563,6 +570,21 @@ declare class MaptilerTerrainControl implements maplibregl.IControl {
563570 _updateTerrainIcon ( ) : void ;
564571}
565572
573+ type HTMLButtonElementPlus = HTMLButtonElement & {
574+ clickFunction : ( e ?: any ) => unknown ;
575+ } ;
576+ declare class MaptilerNavigationControl extends NavigationControl {
577+ constructor ( ) ;
578+ /**
579+ * Overloading: the button now stores its click callback so that we can later on delete it and replace it
580+ */
581+ _createButton ( className : string , fn : ( e ?: any ) => unknown ) : HTMLButtonElementPlus ;
582+ /**
583+ * Overloading: Limit how flat the compass icon can get
584+ */
585+ _rotateCompassArrow ( ) : void ;
586+ }
587+
566588/**
567589 * This is TypeScript rewrite of the Point class to use instead of the version imported in MapLibre.
568590 * It also uses a class instead of prototypes.
@@ -802,4 +824,4 @@ type VideoSourceMLGL = InstanceType<typeof VideoSourceMLGL>;
802824declare const MapMLGL : typeof maplibre_gl . Map ;
803825type MapMLGL = InstanceType < typeof MapMLGL > ;
804826
805- export { AJAXError , AttributionControl , AttributionControlMLGL , CanvasSource , CanvasSourceMLGL , Evented , FullscreenControl , FullscreenControlMLGL , GeoJSONSource , GeoJSONSourceMLGL , GeolocateControl , GeolocateControlMLGL , GeolocationType , ImageSource , ImageSourceMLGL , Language , LanguageKey , LanguageString , LngLat , LngLatBounds , LoadWithTerrainEvent , LogoControl , LogoControlMLGL , Map , MapMLGL , MapOptions , MaptilerGeolocateControl , MaptilerLogoControl , MaptilerTerrainControl , Marker , MarkerMLGL , Matrix2 , MercatorCoordinate , NavigationControl , NavigationControlMLGL , Point , Popup , PopupMLGL , RasterDEMTileSource , RasterDEMTileSourceMLGL , RasterTileSource , RasterTileSourceMLGL , ScaleControl , ScaleControlMLGL , SdkConfig , Style , StyleMLGL , TerrainControl , TerrainControlMLGL , Unit , VectorTileSource , VectorTileSourceMLGL , VideoSource , VideoSourceMLGL , addProtocol , clearPrewarmedResources , config , getRTLTextPluginStatus , maxParallelImageRequests , prewarm , removeProtocol , setRTLTextPlugin , supported , version , workerCount , workerUrl } ;
827+ export { AJAXError , AttributionControl , AttributionControlMLGL , CanvasSource , CanvasSourceMLGL , Evented , FullscreenControl , FullscreenControlMLGL , GeoJSONSource , GeoJSONSourceMLGL , GeolocateControl , GeolocateControlMLGL , GeolocationType , ImageSource , ImageSourceMLGL , Language , LanguageKey , LanguageString , LngLat , LngLatBounds , LoadWithTerrainEvent , LogoControl , LogoControlMLGL , Map , MapMLGL , MapOptions , MaptilerGeolocateControl , MaptilerLogoControl , MaptilerNavigationControl , MaptilerTerrainControl , Marker , MarkerMLGL , Matrix2 , MercatorCoordinate , NavigationControl , NavigationControlMLGL , Point , Popup , PopupMLGL , RasterDEMTileSource , RasterDEMTileSourceMLGL , RasterTileSource , RasterTileSourceMLGL , ScaleControl , ScaleControlMLGL , SdkConfig , Style , StyleMLGL , TerrainControl , TerrainControlMLGL , Unit , VectorTileSource , VectorTileSourceMLGL , VideoSource , VideoSourceMLGL , addProtocol , clearPrewarmedResources , config , getRTLTextPluginStatus , maxParallelImageRequests , prewarm , removeProtocol , setRTLTextPlugin , supported , version , workerCount , workerUrl } ;
0 commit comments