@kahwee/sf-map-svg 1.1.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/README.md +96 -6
- package/SOURCES.md +18 -1
- package/dist/data/README.md +11 -1
- package/dist/data/catalog.json +3 -3
- package/dist/data/guide/bart-stations.json +1 -0
- package/dist/data/guide/coast.json +1 -0
- package/dist/data/guide/highways-detailed.json +1 -0
- package/dist/data/guide/highways.json +1 -0
- package/dist/data/guide/key-roads.json +1 -0
- package/dist/data/guide/landmarks.json +1 -0
- package/dist/data/guide/neighborhoods-realtor.json +1 -0
- package/dist/data/key-roads.json +3837 -6741
- package/dist/data/types.d.ts +1 -0
- package/dist/src/custom-map.d.ts +3 -0
- package/dist/src/custom-map.js +1 -0
- package/dist/src/explorer-core.d.ts +5 -0
- package/dist/src/explorer-core.js +1085 -0
- package/dist/src/explorer-data.d.ts +9 -0
- package/dist/src/explorer-data.js +1 -0
- package/dist/src/explorer.d.ts +2 -2
- package/dist/src/explorer.js +28 -959
- package/dist/src/guide.d.ts +10 -0
- package/dist/src/guide.js +107 -0
- package/dist/src/index.d.ts +5 -6
- package/dist/src/index.js +12 -116
- package/dist/src/interactive-data.d.ts +6 -0
- package/dist/src/interactive-data.js +5 -0
- package/dist/src/interactive.d.ts +1 -1
- package/dist/src/layers.js +6 -1
- package/dist/src/map-core.d.ts +55 -0
- package/dist/src/map-core.js +132 -0
- package/dist/src/overlays.d.ts +1 -0
- package/dist/src/types.d.ts +22 -0
- package/package.json +16 -2
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { DistrictProperties, FeatureCollection, NeighborhoodProperties, NeighborhoodSource } from '../data/types.js';
|
|
2
|
+
import type { SFMapData } from './map-core.js';
|
|
3
|
+
import type { DistrictYear } from './types.js';
|
|
4
|
+
/** Geographic inputs for the data-injected interactive map entry point. */
|
|
5
|
+
export interface InteractiveSFMapData {
|
|
6
|
+
map: SFMapData;
|
|
7
|
+
districts?: Partial<Readonly<Record<DistrictYear, FeatureCollection<DistrictProperties>>>>;
|
|
8
|
+
neighborhoods: Partial<Readonly<Record<NeighborhoodSource, FeatureCollection<NeighborhoodProperties>>>>;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/src/explorer.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { NeighborhoodExplorerElement, NeighborhoodExplorerOptions } from './types.js';
|
|
2
2
|
export type { ExplorerMode, NeighborhoodExplorerElement, NeighborhoodExplorerOptions, } from './types.js';
|
|
3
|
-
/** Create an offline, browser-only neighborhood explorer
|
|
4
|
-
export declare function createNeighborhoodExplorer(
|
|
3
|
+
/** Create an offline, browser-only neighborhood explorer with package datasets. */
|
|
4
|
+
export declare function createNeighborhoodExplorer(options?: NeighborhoodExplorerOptions): NeighborhoodExplorerElement;
|