protomaps-themes-base
Version:
Protomaps basemap themes for MapLibre GL JS
124 lines (119 loc) • 3.8 kB
text/typescript
import { LayerSpecification } from '@maplibre/maplibre-gl-style-spec';
declare const language_script_pairs: {
lang: string;
full_name: string;
script: string;
}[];
interface Theme {
background: string;
earth: string;
park_a: string;
park_b: string;
hospital: string;
industrial: string;
school: string;
wood_a: string;
wood_b: string;
pedestrian: string;
scrub_a: string;
scrub_b: string;
glacier: string;
sand: string;
beach: string;
aerodrome: string;
runway: string;
water: string;
zoo: string;
military: string;
tunnel_other_casing: string;
tunnel_minor_casing: string;
tunnel_link_casing: string;
tunnel_major_casing: string;
tunnel_highway_casing: string;
tunnel_other: string;
tunnel_minor: string;
tunnel_link: string;
tunnel_major: string;
tunnel_highway: string;
pier: string;
buildings: string;
minor_service_casing: string;
minor_casing: string;
link_casing: string;
major_casing_late: string;
highway_casing_late: string;
other: string;
minor_service: string;
minor_a: string;
minor_b: string;
link: string;
major_casing_early: string;
major: string;
highway_casing_early: string;
highway: string;
railway: string;
boundaries: string;
bridges_other_casing: string;
bridges_minor_casing: string;
bridges_link_casing: string;
bridges_major_casing: string;
bridges_highway_casing: string;
bridges_other: string;
bridges_minor: string;
bridges_link: string;
bridges_major: string;
bridges_highway: string;
roads_label_minor: string;
roads_label_minor_halo: string;
roads_label_major: string;
roads_label_major_halo: string;
ocean_label: string;
subplace_label: string;
subplace_label_halo: string;
city_label: string;
city_label_halo: string;
state_label: string;
state_label_halo: string;
country_label: string;
address_label: string;
address_label_halo: string;
regular?: string;
bold?: string;
italic?: string;
pois?: Pois;
landcover?: Landcover;
peak_label: string;
waterway_label: string;
}
interface Pois {
blue: string;
green: string;
lapis: string;
pink: string;
red: string;
slategray: string;
tangerine: string;
turquoise: string;
}
interface Landcover {
barren: string;
farmland: string;
forest: string;
glacier: string;
grassland: string;
scrub: string;
urban_area: string;
}
declare function namedTheme(name: string): Theme;
declare function layers(source: string, theme: Theme, options?: {
labelsOnly?: boolean;
lang?: string;
}): LayerSpecification[];
declare function export_default(source: string, key: string, lang: string, script?: string): LayerSpecification[];
declare function noLabels(source: string, key: string): LayerSpecification[];
declare function labels(source: string, key: string, lang: string, script?: string): LayerSpecification[];
declare function layersWithCustomTheme(source: string, theme: Theme, lang: string, script?: string): LayerSpecification[];
declare function layersWithPartialCustomTheme(source: string, key: string, partialTheme: Partial<Theme>, lang: string, script?: string): LayerSpecification[];
declare function noLabelsWithCustomTheme(source: string, theme: Theme): LayerSpecification[];
declare function labelsWithCustomTheme(source: string, theme: Theme, lang: string, script?: string): LayerSpecification[];
export { type Pois, type Theme, export_default as default, labels, labelsWithCustomTheme, language_script_pairs, layers, layersWithCustomTheme, layersWithPartialCustomTheme, namedTheme, noLabels, noLabelsWithCustomTheme };