You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'Displays a map with markers on it. Useful in combination with PostgreSQL''s PostGIS or SQLite''s spatialite.',
6
+
'
7
+
8
+
## Visualize SQL data on a map.
9
+
10
+
The map component displays a custom interactive map with markers on it.
11
+
12
+
Useful in combination with PostgreSQL''s PostGIS or SQLite''s spatialite,
13
+
to create custom visualizations of your geospatial data.
14
+
15
+
The map component is also compatible with non-geospatial databases,
16
+
by manually setting the `latitude` and `longitude` parameters.
17
+
18
+
### Example Use Cases
19
+
20
+
1. **Store Locator**: Build an interactive map to find the nearest store information using SQL-stored geospatial data.
21
+
2. **Delivery Route Optimization**: Visualize the results of delivery route optimization algorithms.
22
+
3. **Sales Heatmap**: Identify high-performing regions by mapping sales data stored in SQL.
23
+
4. **Real-Time Tracking**: Create dynamic dashboards that track vehicles, assets, or users live using PostGIS or MS SQL Server geospatial time series data.
24
+
5. **Demographic Insights**: Map customer demographics or trends geographically to uncover opportunities for growth or better decision-making.
25
+
',
5
26
'map',
6
27
'0.8.0'
7
28
);
29
+
8
30
-- Insert the parameters for the http_header component into the parameter table
9
-
INSERT INTO parameter (
31
+
INSERT INTO
32
+
parameter (
10
33
component,
11
34
name,
12
35
description,
13
36
type,
14
37
top_level,
15
38
optional
16
39
)
17
-
VALUES (
40
+
VALUES
41
+
(
18
42
'map',
19
43
'latitude',
20
44
'Latitude of the center of the map. If omitted, the map will be centered on its markers.',
@@ -38,23 +62,23 @@ VALUES (
38
62
TRUE,
39
63
TRUE
40
64
),
41
-
(
65
+
(
42
66
'map',
43
67
'max_zoom',
44
68
'How far the map can be zoomed in. Defaults to 18. Added in v0.15.2.',
45
69
'INTEGER',
46
70
TRUE,
47
71
TRUE
48
72
),
49
-
(
73
+
(
50
74
'map',
51
75
'tile_source',
52
76
'Custom map tile images to use, as a URL. Defaults to "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png". Added in v0.15.2.',
-- Insert an example usage of the map component into the example table
147
-
INSERT INTO example (component, description, properties)
148
-
VALUES (
171
+
INSERT INTO
172
+
example (component, description, properties)
173
+
VALUES
174
+
(
149
175
'map',
150
-
'Basic example of a map with a marker',
151
-
JSON(
176
+
'
177
+
### Adding a marker to a map
178
+
179
+
Showing how to place a marker on a map. Useful for basic location displays like showing a single office location, event venue, or point of interest. The marker shows basic hover and click interactions.
0 commit comments