-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathstudymap.config.ts
More file actions
48 lines (44 loc) · 1.63 KB
/
Copy pathstudymap.config.ts
File metadata and controls
48 lines (44 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/**
* StudyMap region + dataset config.
*
* Forking StudyMap for a different city or dataset? This is the one file to
* change. Swap the imports below for your own `data/places/*.json`, and
* adjust `center` / `defaultZoom` / `cities` to your region. No other file
* needs to change; `src/lib/places.ts` reads from here.
*/
import type { City, Place } from "@/lib/types";
import airport from "./data/places/airport.json";
import library from "./data/places/library.json";
import otherPlaces from "./data/places/other_places.json";
import satCentre from "./data/places/sat_centre.json";
import foreignLangExamCentre from "./data/places/foreign_lang_exam_centre.json";
import govOffices from "./data/places/gov_offices.json";
export interface StudyMapConfig {
/** Initial map center, as [lat, lng]. */
center: [number, number];
/** Default zoom level for the initial map view. */
defaultZoom: number;
/**
* Preferred display order for the city filter — a hint, not an exhaustive
* list. Any city present in the data but missing here still shows, sorted
* alphabetically after these; you don't need to list every city in your
* dataset.
*/
cities: City[];
/** Every place pin StudyMap renders, merged from the data sources above. */
places: Place[];
}
const studyMapConfig: StudyMapConfig = {
center: [19.08, 72.95],
defaultZoom: 11,
cities: ["mumbai", "thane", "navi_mumbai"],
places: [
...(airport as Place[]),
...(library as Place[]),
...(otherPlaces as Place[]),
...(satCentre as Place[]),
...(foreignLangExamCentre as Place[]),
...(govOffices as Place[]),
],
};
export default studyMapConfig;