@maptiler/sdk
Version:
The Javascript & TypeScript map SDK tailored for MapTiler Cloud
18 lines (17 loc) • 681 B
TypeScript
import { ReferenceMapStyle, MapStyleVariant } from '@maptiler/client';
export declare function styleToStyle(style: string | ReferenceMapStyle | MapStyleVariant | maplibregl.StyleSpecification | null | undefined): {
style: string | maplibregl.StyleSpecification;
requiresUrlMonitoring: boolean;
isFallback: boolean;
};
/**
* makes sure a URL is absolute
*/
export declare function urlToAbsoluteUrl(url: string): string;
type StyleValidationReport = {
isValidJSON: boolean;
isValidStyle: boolean;
styleObject: maplibregl.StyleSpecification | null;
};
export declare function convertToStyleSpecificationString(str: string): StyleValidationReport;
export {};