forked from StudentSuite/StudyMap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstudymap.config.example.ts
More file actions
35 lines (30 loc) · 1.02 KB
/
Copy pathstudymap.config.example.ts
File metadata and controls
35 lines (30 loc) · 1.02 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
/**
* Example StudyMap config for a fresh fork.
*
* To run StudyMap for your own city with the placeholder sample dataset:
* 1. cp studymap.config.example.ts studymap.config.ts
* 2. Replace the imports below and every entry in data/places.sample/
* with your own data, or start adding real files under data/places/
* per CONTRIBUTING.md and import those instead.
* 3. Set center / defaultZoom / bounds / cities to your region.
*/
import type { Bounds } from "@/lib/places";
import type { City, Place } from "@/lib/types";
import type { StudyMapConfig } from "./studymap.config";
import library from "./data/places.sample/library.json";
import bookShop from "./data/places.sample/book_shop.json";
const bounds: Bounds = {
minLat: -1,
maxLat: 1,
minLng: -1,
maxLng: 1,
};
const cities: City[] = ["example_city"];
const studyMapConfig: StudyMapConfig = {
center: [0, 0],
defaultZoom: 12,
bounds,
cities,
places: [...(library as Place[]), ...(bookShop as Place[])],
};
export default studyMapConfig;