mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-30 16:33:16 +00:00
chore(maps): keep the new map types local and lower the knip baseline
BasemapSpec and EffectiveMapEngine are only named inside their own modules so far, so they stay unexported until a caller needs the name. The basemap spec reads the Tours raster zoom limits from mapDefaults, so one export there is no longer unused; the knip baseline follows.
This commit is contained in:
@@ -17,7 +17,7 @@ import { isGcj02Basemap, resolveBasemap, templateHost } from '../../utils/tileUr
|
||||
* pixel-density placeholders decided exactly as Leaflet decides them, so both
|
||||
* renderers ask the provider for the same tiles. Pure and free of both GL SDKs.
|
||||
*/
|
||||
export type BasemapSpec = VectorBasemapSpec | RasterBasemapSpec;
|
||||
type BasemapSpec = VectorBasemapSpec | RasterBasemapSpec;
|
||||
|
||||
interface VectorBasemapSpec {
|
||||
kind: 'vector';
|
||||
|
||||
@@ -16,7 +16,7 @@ type OfflineBasemapPill =
|
||||
/** The user's map is kept as far as it was viewed; the pill switches to the stored region and back. */
|
||||
| { kind: 'toggle'; pressed: boolean; onToggle: () => void };
|
||||
|
||||
export interface EffectiveMapEngine {
|
||||
interface EffectiveMapEngine {
|
||||
/** The GL engine that draws this render, or null for Leaflet. */
|
||||
engine: GlMapProvider | null;
|
||||
/** The style a GL map draws instead of the user's: the stored offline basemap. */
|
||||
|
||||
Reference in New Issue
Block a user