-
Notifications
You must be signed in to change notification settings - Fork 136
/
Copy pathindex.sql
40 lines (34 loc) · 924 Bytes
/
index.sql
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
SELECT 'shell' as component,
'Map' AS title,
'/' as link,
'book' as icon;
SELECT 'map' AS component,
ST_Y(geom) AS latitude,
ST_X(geom) AS longitude
FROM spatial_data
WHERE id = $id;
SELECT 'map' as component,
'Points of interest' as title,
2 as zoom,
700 as height;
SELECT title,
ST_Y(geom) AS latitude,
ST_X(geom) AS longitude,
'point.sql?id=' || id as link,
'red' as color,
'world-pin' as icon
FROM spatial_data;
SELECT 'list' as component,
'My points' as title;
SELECT title,
'point.sql?id=' || id as link,
'red' as color,
'world-pin' as icon
FROM spatial_data;
SELECT 'form' AS component,
'Add a point' AS title,
'add_point.sql' AS action;
SELECT 'Title' AS name;
SELECT 'Latitude' AS name, 'number' AS type, 0.00000001 AS step;
SELECT 'Longitude' AS name, 'number' AS type, 0.00000001 AS step;
SELECT 'Text' AS name, 'textarea' AS type;