@lowdefy/blocks-google-maps 4.7.3 → 5.0.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/dist/blocks/GoogleMaps/GoogleMaps.js +7 -7
- package/dist/blocks/GoogleMaps/meta.js +221 -0
- package/dist/blocks/GoogleMapsHeatmap/GoogleMapsHeatmap.js +7 -7
- package/dist/blocks/GoogleMapsHeatmap/meta.js +159 -0
- package/dist/blocks/GoogleMapsScript/GoogleMapsScript.js +3 -5
- package/dist/blocks/GoogleMapsScript/meta.js +63 -0
- package/dist/blocks/Map.js +6 -5
- package/dist/metas.js +17 -0
- package/dist/types.js +4 -16
- package/package.json +12 -10
- package/dist/blocks/GoogleMaps/GoogleMaps.json +0 -207
- package/dist/blocks/GoogleMapsHeatmap/GoogleMapsHeatmap.json +0 -135
- package/dist/blocks/GoogleMapsScript/GoogleMapsScript.json +0 -28
|
@@ -13,18 +13,18 @@
|
|
|
13
13
|
See the License for the specific language governing permissions and
|
|
14
14
|
limitations under the License.
|
|
15
15
|
*/ import React from 'react';
|
|
16
|
-
import {
|
|
16
|
+
import { withBlockDefaults } from '@lowdefy/block-utils';
|
|
17
17
|
import Map from '../Map.js';
|
|
18
|
-
const GoogleMaps = ({ blockId, content, methods, properties })=>/*#__PURE__*/ React.createElement(Map, {
|
|
18
|
+
const GoogleMaps = ({ blockId, classNames = {}, content, methods, properties, styles = {} })=>/*#__PURE__*/ React.createElement(Map, {
|
|
19
19
|
blockId: blockId,
|
|
20
|
+
classNames: classNames,
|
|
20
21
|
content: content,
|
|
21
22
|
methods: methods,
|
|
22
|
-
properties: properties
|
|
23
|
+
properties: properties,
|
|
24
|
+
styles: styles
|
|
23
25
|
});
|
|
24
|
-
GoogleMaps.defaultProps = blockDefaultProps;
|
|
25
26
|
GoogleMaps.meta = {
|
|
26
27
|
category: 'container',
|
|
27
|
-
icons: []
|
|
28
|
-
styles: []
|
|
28
|
+
icons: []
|
|
29
29
|
};
|
|
30
|
-
export default GoogleMaps;
|
|
30
|
+
export default withBlockDefaults(GoogleMaps);
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2020-2026 Lowdefy, Inc
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
See the License for the specific language governing permissions and
|
|
14
|
+
limitations under the License.
|
|
15
|
+
*/ export default {
|
|
16
|
+
category: 'container',
|
|
17
|
+
icons: [],
|
|
18
|
+
valueType: null,
|
|
19
|
+
slots: {
|
|
20
|
+
content: 'Marker blocks on the map.',
|
|
21
|
+
infoWindow: 'Info window popup content.'
|
|
22
|
+
},
|
|
23
|
+
cssKeys: {
|
|
24
|
+
element: 'The map container element.'
|
|
25
|
+
},
|
|
26
|
+
events: {
|
|
27
|
+
onBoundsChanged: 'Trigger actions when the bounds of the map are changed.',
|
|
28
|
+
onCenterChanged: 'Trigger actions when the center of the map is changed.',
|
|
29
|
+
onClick: 'Trigger actions when the map is clicked.',
|
|
30
|
+
onClusterClick: 'Trigger actions when a marker cluster is clicked.',
|
|
31
|
+
onMarkerClick: 'Trigger actions when a marker is clicked.',
|
|
32
|
+
onZoomChanged: 'Trigger actions when the zoom on the map is changed.',
|
|
33
|
+
onInfoWindowCloseClick: 'Trigger actions when the info window close button is clicked.',
|
|
34
|
+
onInfoWindowPositionChanged: 'Trigger actions when the info window position changes.',
|
|
35
|
+
onLoad: 'Trigger actions when the map is loaded.'
|
|
36
|
+
},
|
|
37
|
+
properties: {
|
|
38
|
+
type: 'object',
|
|
39
|
+
additionalProperties: false,
|
|
40
|
+
properties: {
|
|
41
|
+
autoBounds: {
|
|
42
|
+
type: 'boolean',
|
|
43
|
+
default: true,
|
|
44
|
+
description: 'Automatically fit the map bounds to include all markers, clusterers, and info windows.'
|
|
45
|
+
},
|
|
46
|
+
map: {
|
|
47
|
+
type: 'object',
|
|
48
|
+
description: 'Map settings object.',
|
|
49
|
+
properties: {
|
|
50
|
+
center: {
|
|
51
|
+
type: 'object',
|
|
52
|
+
description: 'A coordinate position object by which to center the map.',
|
|
53
|
+
properties: {
|
|
54
|
+
lat: {
|
|
55
|
+
type: 'number',
|
|
56
|
+
description: 'Lateral coordinate.'
|
|
57
|
+
},
|
|
58
|
+
lng: {
|
|
59
|
+
type: 'number',
|
|
60
|
+
description: 'Longitudinal coordinate.'
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
zoom: {
|
|
65
|
+
type: 'number',
|
|
66
|
+
description: 'Map zoom level.'
|
|
67
|
+
},
|
|
68
|
+
options: {
|
|
69
|
+
type: 'object',
|
|
70
|
+
description: 'Map options. See <a href="https://developers.google.com/maps/documentation/javascript/reference/map#MapOptions">Google Maps MapOptions</a>.'
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
heatmap: {
|
|
75
|
+
type: 'object',
|
|
76
|
+
description: 'Add a heatmap layer. This will automatically load the visualization library. See <a href="https://developers.google.com/maps/documentation/javascript/reference/visualization#HeatmapLayerOptions">heatmap options</a>.',
|
|
77
|
+
properties: {
|
|
78
|
+
data: {
|
|
79
|
+
type: 'array',
|
|
80
|
+
description: 'A list of heatmap data points.',
|
|
81
|
+
items: {
|
|
82
|
+
type: 'object',
|
|
83
|
+
properties: {
|
|
84
|
+
lat: {
|
|
85
|
+
type: 'number',
|
|
86
|
+
description: 'Lateral coordinate.'
|
|
87
|
+
},
|
|
88
|
+
lng: {
|
|
89
|
+
type: 'number',
|
|
90
|
+
description: 'Longitudinal coordinate.'
|
|
91
|
+
},
|
|
92
|
+
weight: {
|
|
93
|
+
type: 'number',
|
|
94
|
+
description: 'Item weight on heatmap.'
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
markers: {
|
|
102
|
+
type: 'array',
|
|
103
|
+
description: 'A list of markers with marker options. See <a href="https://developers.google.com/maps/documentation/javascript/markers">Google Maps Markers</a>.',
|
|
104
|
+
items: {
|
|
105
|
+
type: 'object',
|
|
106
|
+
properties: {
|
|
107
|
+
position: {
|
|
108
|
+
type: 'object',
|
|
109
|
+
properties: {
|
|
110
|
+
lat: {
|
|
111
|
+
type: 'number',
|
|
112
|
+
description: 'Lateral coordinate.'
|
|
113
|
+
},
|
|
114
|
+
lng: {
|
|
115
|
+
type: 'number',
|
|
116
|
+
description: 'Longitudinal coordinate.'
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
label: {
|
|
121
|
+
type: 'string',
|
|
122
|
+
description: 'Label displayed on marker.'
|
|
123
|
+
},
|
|
124
|
+
title: {
|
|
125
|
+
type: 'string',
|
|
126
|
+
description: 'Marker title shown on hover.'
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
markerClusterers: {
|
|
132
|
+
type: 'array',
|
|
133
|
+
description: 'A list of marker clusterers with marker clusterer options.',
|
|
134
|
+
items: {
|
|
135
|
+
type: 'object',
|
|
136
|
+
properties: {
|
|
137
|
+
markers: {
|
|
138
|
+
type: 'array',
|
|
139
|
+
description: 'A list of markers with marker options.',
|
|
140
|
+
items: {
|
|
141
|
+
type: 'object',
|
|
142
|
+
properties: {
|
|
143
|
+
position: {
|
|
144
|
+
type: 'object',
|
|
145
|
+
properties: {
|
|
146
|
+
lat: {
|
|
147
|
+
type: 'number',
|
|
148
|
+
description: 'Lateral coordinate.'
|
|
149
|
+
},
|
|
150
|
+
lng: {
|
|
151
|
+
type: 'number',
|
|
152
|
+
description: 'Longitudinal coordinate.'
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
label: {
|
|
157
|
+
type: 'string',
|
|
158
|
+
description: 'Label displayed on marker.'
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
options: {
|
|
164
|
+
type: 'object',
|
|
165
|
+
description: 'Marker clusterer options. See <a href="https://react-google-maps-api-docs.netlify.app/#markerclusterer">MarkerClusterer</a>.',
|
|
166
|
+
properties: {
|
|
167
|
+
averageCenter: {
|
|
168
|
+
type: 'boolean',
|
|
169
|
+
description: 'Whether the position of a cluster marker should be the average position of all markers in the cluster.'
|
|
170
|
+
},
|
|
171
|
+
gridSize: {
|
|
172
|
+
type: 'number',
|
|
173
|
+
description: 'The grid size of a cluster in pixels.'
|
|
174
|
+
},
|
|
175
|
+
maxZoom: {
|
|
176
|
+
type: 'number',
|
|
177
|
+
description: 'The maximum zoom level at which clustering is enabled.'
|
|
178
|
+
},
|
|
179
|
+
minimumClusterSize: {
|
|
180
|
+
type: 'number',
|
|
181
|
+
description: 'The minimum number of markers needed to form a cluster.'
|
|
182
|
+
},
|
|
183
|
+
styles: {
|
|
184
|
+
type: 'array',
|
|
185
|
+
description: 'Styles of the cluster markers to be used.'
|
|
186
|
+
},
|
|
187
|
+
zoomOnClick: {
|
|
188
|
+
type: 'boolean',
|
|
189
|
+
description: 'Whether to zoom the map when a cluster marker is clicked.'
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
infoWindow: {
|
|
197
|
+
type: 'object',
|
|
198
|
+
description: 'Info window options. See <a href="https://developers.google.com/maps/documentation/javascript/reference/info-window#InfoWindowOptions">InfoWindowOptions</a>.',
|
|
199
|
+
properties: {
|
|
200
|
+
visible: {
|
|
201
|
+
type: 'boolean',
|
|
202
|
+
description: 'When visible is true, blocks inside the infoWindow content area will be rendered.'
|
|
203
|
+
},
|
|
204
|
+
position: {
|
|
205
|
+
type: 'object',
|
|
206
|
+
properties: {
|
|
207
|
+
lat: {
|
|
208
|
+
type: 'number',
|
|
209
|
+
description: 'Lateral coordinate.'
|
|
210
|
+
},
|
|
211
|
+
lng: {
|
|
212
|
+
type: 'number',
|
|
213
|
+
description: 'Longitudinal coordinate.'
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
};
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
See the License for the specific language governing permissions and
|
|
14
14
|
limitations under the License.
|
|
15
15
|
*/ import React from 'react';
|
|
16
|
-
import {
|
|
16
|
+
import { withBlockDefaults } from '@lowdefy/block-utils';
|
|
17
17
|
import { HeatmapLayer } from '@react-google-maps/api';
|
|
18
18
|
import Map from '../Map.js';
|
|
19
19
|
function updateHeatmap(data) {
|
|
@@ -24,11 +24,13 @@ function updateHeatmap(data) {
|
|
|
24
24
|
}
|
|
25
25
|
return new window.google.maps.LatLng(data);
|
|
26
26
|
}
|
|
27
|
-
const GoogleMapsHeatmap = ({ blockId, content, methods, properties })=>/*#__PURE__*/ React.createElement(Map, {
|
|
27
|
+
const GoogleMapsHeatmap = ({ blockId, classNames = {}, content, methods, properties, styles = {} })=>/*#__PURE__*/ React.createElement(Map, {
|
|
28
28
|
blockId: blockId,
|
|
29
|
+
classNames: classNames,
|
|
29
30
|
content: content,
|
|
30
31
|
methods: methods,
|
|
31
|
-
properties: properties
|
|
32
|
+
properties: properties,
|
|
33
|
+
styles: styles
|
|
32
34
|
}, (map, bounds)=>map && bounds && properties.heatmap && /*#__PURE__*/ React.createElement(HeatmapLayer, {
|
|
33
35
|
...properties.heatmap,
|
|
34
36
|
data: properties.heatmap?.data && window.google && (properties.heatmap?.data || []).map((item)=>updateHeatmap(item)),
|
|
@@ -41,10 +43,8 @@ const GoogleMapsHeatmap = ({ blockId, content, methods, properties })=>/*#__PURE
|
|
|
41
43
|
}
|
|
42
44
|
}
|
|
43
45
|
}));
|
|
44
|
-
GoogleMapsHeatmap.defaultProps = blockDefaultProps;
|
|
45
46
|
GoogleMapsHeatmap.meta = {
|
|
46
47
|
category: 'container',
|
|
47
|
-
icons: []
|
|
48
|
-
styles: []
|
|
48
|
+
icons: []
|
|
49
49
|
};
|
|
50
|
-
export default GoogleMapsHeatmap;
|
|
50
|
+
export default withBlockDefaults(GoogleMapsHeatmap);
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2020-2026 Lowdefy, Inc
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
See the License for the specific language governing permissions and
|
|
14
|
+
limitations under the License.
|
|
15
|
+
*/ export default {
|
|
16
|
+
category: 'container',
|
|
17
|
+
icons: [],
|
|
18
|
+
valueType: null,
|
|
19
|
+
slots: {
|
|
20
|
+
content: 'Marker blocks on the map.',
|
|
21
|
+
infoWindow: 'Info window popup content.'
|
|
22
|
+
},
|
|
23
|
+
cssKeys: {
|
|
24
|
+
element: 'The map container element.'
|
|
25
|
+
},
|
|
26
|
+
events: {
|
|
27
|
+
onClick: 'Trigger actions when the map is clicked.',
|
|
28
|
+
onMarkerClick: 'Trigger actions when a marker is clicked.',
|
|
29
|
+
onZoomChanged: 'Trigger actions when the zoom on the map is changed.',
|
|
30
|
+
onBoundsChanged: 'Trigger actions when the bounds of the map are changed.',
|
|
31
|
+
onCenterChanged: 'Trigger actions when the center of the map is changed.',
|
|
32
|
+
onInfoWindowCloseClick: 'Trigger actions when the info window close button is clicked.',
|
|
33
|
+
onInfoWindowPositionChanged: 'Trigger actions when the info window position changes.',
|
|
34
|
+
onLoad: 'Trigger actions when the map is loaded.'
|
|
35
|
+
},
|
|
36
|
+
properties: {
|
|
37
|
+
type: 'object',
|
|
38
|
+
additionalProperties: false,
|
|
39
|
+
properties: {
|
|
40
|
+
autoBounds: {
|
|
41
|
+
type: 'boolean',
|
|
42
|
+
default: true,
|
|
43
|
+
description: 'Automatically fit the map bounds to include all markers and heatmap data points.'
|
|
44
|
+
},
|
|
45
|
+
map: {
|
|
46
|
+
type: 'object',
|
|
47
|
+
description: 'Map settings object.',
|
|
48
|
+
properties: {
|
|
49
|
+
center: {
|
|
50
|
+
type: 'object',
|
|
51
|
+
description: 'A coordinate position object by which to center the map.',
|
|
52
|
+
properties: {
|
|
53
|
+
lat: {
|
|
54
|
+
type: 'number',
|
|
55
|
+
description: 'Lateral coordinate.'
|
|
56
|
+
},
|
|
57
|
+
lng: {
|
|
58
|
+
type: 'number',
|
|
59
|
+
description: 'Longitudinal coordinate.'
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
zoom: {
|
|
64
|
+
type: 'number',
|
|
65
|
+
description: 'Map zoom level.'
|
|
66
|
+
},
|
|
67
|
+
options: {
|
|
68
|
+
type: 'object',
|
|
69
|
+
description: 'Map options. See <a href="https://developers.google.com/maps/documentation/javascript/reference/map#MapOptions">Google Maps MapOptions</a>.'
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
heatmap: {
|
|
74
|
+
type: 'object',
|
|
75
|
+
description: 'Heatmap layer options. See <a href="https://developers.google.com/maps/documentation/javascript/reference/visualization#HeatmapLayerOptions">heatmap options</a>.',
|
|
76
|
+
properties: {
|
|
77
|
+
data: {
|
|
78
|
+
type: 'array',
|
|
79
|
+
description: 'A list of heatmap data points.',
|
|
80
|
+
items: {
|
|
81
|
+
type: 'object',
|
|
82
|
+
properties: {
|
|
83
|
+
lat: {
|
|
84
|
+
type: 'number',
|
|
85
|
+
description: 'Lateral coordinate.'
|
|
86
|
+
},
|
|
87
|
+
lng: {
|
|
88
|
+
type: 'number',
|
|
89
|
+
description: 'Longitudinal coordinate.'
|
|
90
|
+
},
|
|
91
|
+
weight: {
|
|
92
|
+
type: 'number',
|
|
93
|
+
description: 'Item weight on heatmap.'
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
radius: {
|
|
99
|
+
type: 'number',
|
|
100
|
+
description: 'The radius of influence for each data point, in pixels.'
|
|
101
|
+
},
|
|
102
|
+
opacity: {
|
|
103
|
+
type: 'number',
|
|
104
|
+
description: 'The opacity of the heatmap, from 0 to 1.'
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
markers: {
|
|
109
|
+
type: 'array',
|
|
110
|
+
description: 'A list of markers with marker options. See <a href="https://developers.google.com/maps/documentation/javascript/markers">Google Maps Markers</a>.',
|
|
111
|
+
items: {
|
|
112
|
+
type: 'object',
|
|
113
|
+
properties: {
|
|
114
|
+
position: {
|
|
115
|
+
type: 'object',
|
|
116
|
+
properties: {
|
|
117
|
+
lat: {
|
|
118
|
+
type: 'number',
|
|
119
|
+
description: 'Lateral coordinate.'
|
|
120
|
+
},
|
|
121
|
+
lng: {
|
|
122
|
+
type: 'number',
|
|
123
|
+
description: 'Longitudinal coordinate.'
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
label: {
|
|
128
|
+
type: 'string',
|
|
129
|
+
description: 'Label displayed on marker.'
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
infoWindow: {
|
|
135
|
+
type: 'object',
|
|
136
|
+
description: 'Info window options. See <a href="https://developers.google.com/maps/documentation/javascript/reference/info-window#InfoWindowOptions">InfoWindowOptions</a>.',
|
|
137
|
+
properties: {
|
|
138
|
+
visible: {
|
|
139
|
+
type: 'boolean',
|
|
140
|
+
description: 'When visible is true, blocks inside the infoWindow content area will be rendered.'
|
|
141
|
+
},
|
|
142
|
+
position: {
|
|
143
|
+
type: 'object',
|
|
144
|
+
properties: {
|
|
145
|
+
lat: {
|
|
146
|
+
type: 'number',
|
|
147
|
+
description: 'Lateral coordinate.'
|
|
148
|
+
},
|
|
149
|
+
lng: {
|
|
150
|
+
type: 'number',
|
|
151
|
+
description: 'Longitudinal coordinate.'
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
};
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
limitations under the License.
|
|
15
15
|
*/ import React from 'react';
|
|
16
16
|
import { LoadScriptNext } from '@react-google-maps/api';
|
|
17
|
-
import {
|
|
17
|
+
import { withBlockDefaults } from '@lowdefy/block-utils';
|
|
18
18
|
let GoogleMapsScript = class GoogleMapsScript extends React.Component {
|
|
19
19
|
render() {
|
|
20
20
|
const { blockId, properties, content } = this.props;
|
|
@@ -35,10 +35,8 @@ let GoogleMapsScript = class GoogleMapsScript extends React.Component {
|
|
|
35
35
|
];
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
-
GoogleMapsScript.defaultProps = blockDefaultProps;
|
|
39
38
|
GoogleMapsScript.meta = {
|
|
40
39
|
category: 'container',
|
|
41
|
-
icons: []
|
|
42
|
-
styles: []
|
|
40
|
+
icons: []
|
|
43
41
|
};
|
|
44
|
-
export default GoogleMapsScript;
|
|
42
|
+
export default withBlockDefaults(GoogleMapsScript);
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2020-2026 Lowdefy, Inc
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
See the License for the specific language governing permissions and
|
|
14
|
+
limitations under the License.
|
|
15
|
+
*/ export default {
|
|
16
|
+
category: 'container',
|
|
17
|
+
icons: [],
|
|
18
|
+
valueType: null,
|
|
19
|
+
slots: {
|
|
20
|
+
content: 'Child blocks wrapped by the script provider.'
|
|
21
|
+
},
|
|
22
|
+
properties: {
|
|
23
|
+
type: 'object',
|
|
24
|
+
additionalProperties: false,
|
|
25
|
+
properties: {
|
|
26
|
+
apiKey: {
|
|
27
|
+
type: 'string',
|
|
28
|
+
description: 'Your Google Maps API key.'
|
|
29
|
+
},
|
|
30
|
+
libraries: {
|
|
31
|
+
type: 'array',
|
|
32
|
+
description: 'A list of Google libraries to load. See <a href="https://developers.google.com/maps/documentation/javascript/libraries">Google Maps Libraries</a>.',
|
|
33
|
+
items: {
|
|
34
|
+
type: 'string',
|
|
35
|
+
enum: [
|
|
36
|
+
'drawing',
|
|
37
|
+
'geometry',
|
|
38
|
+
'journeySharing',
|
|
39
|
+
'localContext',
|
|
40
|
+
'places',
|
|
41
|
+
'visualization'
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
language: {
|
|
46
|
+
type: 'string',
|
|
47
|
+
description: 'The language code for the Google Maps API (e.g. "en", "fr", "ja").'
|
|
48
|
+
},
|
|
49
|
+
region: {
|
|
50
|
+
type: 'string',
|
|
51
|
+
description: 'The region code to bias geocoding results (e.g. "US", "GB"). See <a href="https://developers.google.com/maps/documentation/javascript/localization">localization</a>.'
|
|
52
|
+
},
|
|
53
|
+
version: {
|
|
54
|
+
type: 'string',
|
|
55
|
+
description: 'The version of the Google Maps JavaScript API to load (e.g. "weekly", "3.50").'
|
|
56
|
+
},
|
|
57
|
+
channel: {
|
|
58
|
+
type: 'string',
|
|
59
|
+
description: 'A channel parameter for tracking API usage.'
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
};
|
package/dist/blocks/Map.js
CHANGED
|
@@ -33,7 +33,7 @@ const MAP_PROPS = {
|
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
35
|
// Implements https://react-google-maps-api-docs.netlify.app/#googlemap
|
|
36
|
-
const Map = ({ blockId, children, content, methods, properties })=>{
|
|
36
|
+
const Map = ({ blockId, children, classNames = {}, content, methods, properties, styles = {} })=>{
|
|
37
37
|
const [map, setMap] = useState();
|
|
38
38
|
const [bounds, setBounds] = useState();
|
|
39
39
|
useEffect(()=>{
|
|
@@ -89,10 +89,11 @@ const Map = ({ blockId, children, content, methods, properties })=>{
|
|
|
89
89
|
return /*#__PURE__*/ React.createElement(GoogleMap, {
|
|
90
90
|
...properties.map,
|
|
91
91
|
id: blockId,
|
|
92
|
-
mapContainerClassName:
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
92
|
+
mapContainerClassName: classNames.element,
|
|
93
|
+
mapContainerStyle: {
|
|
94
|
+
...STYLE_DEFAULTS,
|
|
95
|
+
...styles.element
|
|
96
|
+
},
|
|
96
97
|
center: MAP_PROPS.center,
|
|
97
98
|
zoom: MAP_PROPS.zoom,
|
|
98
99
|
onLoad: (newMap, event)=>{
|
package/dist/metas.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2020-2026 Lowdefy, Inc
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
See the License for the specific language governing permissions and
|
|
14
|
+
limitations under the License.
|
|
15
|
+
*/ export { default as GoogleMaps } from './blocks/GoogleMaps/meta.js';
|
|
16
|
+
export { default as GoogleMapsHeatmap } from './blocks/GoogleMapsHeatmap/meta.js';
|
|
17
|
+
export { default as GoogleMapsScript } from './blocks/GoogleMapsScript/meta.js';
|
package/dist/types.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*
|
|
1
|
+
/*
|
|
2
2
|
Copyright 2020-2026 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -12,18 +12,6 @@
|
|
|
12
12
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
13
|
See the License for the specific language governing permissions and
|
|
14
14
|
limitations under the License.
|
|
15
|
-
*/ import
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
Object.keys(blocks).forEach((block)=>{
|
|
19
|
-
icons[block] = blocks[block].meta.icons ?? [];
|
|
20
|
-
styles[block] = blocks[block].meta.styles ?? [];
|
|
21
|
-
});
|
|
22
|
-
export default {
|
|
23
|
-
blocks: Object.keys(blocks),
|
|
24
|
-
icons,
|
|
25
|
-
styles: {
|
|
26
|
-
default: [],
|
|
27
|
-
...styles
|
|
28
|
-
}
|
|
29
|
-
};
|
|
15
|
+
*/ import { extractBlockTypes } from '@lowdefy/block-utils';
|
|
16
|
+
import * as metas from './metas.js';
|
|
17
|
+
export default extractBlockTypes(metas);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lowdefy/blocks-google-maps",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Google Maps Blocks for Lowdefy.",
|
|
6
6
|
"homepage": "https://lowdefy.com",
|
|
@@ -35,24 +35,26 @@
|
|
|
35
35
|
"dist/*"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@lowdefy/block-utils": "
|
|
39
|
-
"@react-google-maps/api": "2.19.2"
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
"@lowdefy/block-utils": "5.0.0",
|
|
39
|
+
"@react-google-maps/api": "2.19.2"
|
|
40
|
+
},
|
|
41
|
+
"peerDependencies": {
|
|
42
|
+
"react": ">=18",
|
|
43
|
+
"react-dom": ">=18"
|
|
42
44
|
},
|
|
43
45
|
"devDependencies": {
|
|
44
|
-
"@lowdefy/block-dev-e2e": "
|
|
45
|
-
"@lowdefy/e2e-utils": "
|
|
46
|
+
"@lowdefy/block-dev-e2e": "5.0.0",
|
|
47
|
+
"@lowdefy/e2e-utils": "5.0.0",
|
|
46
48
|
"@playwright/test": "1.50.1",
|
|
47
|
-
"@swc/cli": "0.
|
|
48
|
-
"@swc/core": "1.
|
|
49
|
+
"@swc/cli": "0.8.0",
|
|
50
|
+
"@swc/core": "1.15.18",
|
|
49
51
|
"copyfiles": "2.4.1"
|
|
50
52
|
},
|
|
51
53
|
"publishConfig": {
|
|
52
54
|
"access": "public"
|
|
53
55
|
},
|
|
54
56
|
"scripts": {
|
|
55
|
-
"build": "swc src --out-dir dist --config-file ../../../../.swcrc --
|
|
57
|
+
"build": "swc src --out-dir dist --config-file ../../../../.swcrc --cli-config-file ../../../../.swc-cli.json && pnpm copyfiles",
|
|
56
58
|
"clean": "rm -rf dist",
|
|
57
59
|
"copyfiles": "copyfiles -u 1 \"./src/**/*\" dist -e \"./src/**/*.js\" -e \"./src/**/*.yaml\" -e \"./src/**/*.snap\"",
|
|
58
60
|
"e2e": "playwright test --config e2e/playwright.config.js",
|
|
@@ -1,207 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"type": "object",
|
|
3
|
-
"properties": {
|
|
4
|
-
"type": "object",
|
|
5
|
-
"additionalProperties": false,
|
|
6
|
-
"properties": {
|
|
7
|
-
"map": {
|
|
8
|
-
"type": "object",
|
|
9
|
-
"description": "Map settings object.",
|
|
10
|
-
"properties": {
|
|
11
|
-
"center": {
|
|
12
|
-
"type": "object",
|
|
13
|
-
"description": "A coordinate position object by which to center the map.",
|
|
14
|
-
"properties": {
|
|
15
|
-
"lat": {
|
|
16
|
-
"type": "number",
|
|
17
|
-
"description": "Lateral coordinate."
|
|
18
|
-
},
|
|
19
|
-
"lng": {
|
|
20
|
-
"type": "number",
|
|
21
|
-
"description": "Longitudinal coordinate."
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
"zoom": {
|
|
26
|
-
"type": "number",
|
|
27
|
-
"description": "Map zoom level."
|
|
28
|
-
},
|
|
29
|
-
"options": {
|
|
30
|
-
"type": "object",
|
|
31
|
-
"description": "Map options, see <a href='https://developers.google.com/maps/documentation/javascript/reference/map#MapOptions'>more</a>."
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
"heatmap": {
|
|
36
|
-
"type": "object",
|
|
37
|
-
"description": "Add a heatmap layer, see more <a href='https://developers.google.com/maps/documentation/javascript/reference/visualization#HeatmapLayerOptions'>heatmap options</a>. This will automatically load the 'visualization' library.",
|
|
38
|
-
"properties": {
|
|
39
|
-
"data": {
|
|
40
|
-
"type": "array",
|
|
41
|
-
"description": "A list of heatmap data points.",
|
|
42
|
-
"items": {
|
|
43
|
-
"type": "object",
|
|
44
|
-
"properties": {
|
|
45
|
-
"lat": {
|
|
46
|
-
"type": "number",
|
|
47
|
-
"description": "Lateral coordinate."
|
|
48
|
-
},
|
|
49
|
-
"lng": {
|
|
50
|
-
"type": "number",
|
|
51
|
-
"description": "Longitudinal coordinate."
|
|
52
|
-
},
|
|
53
|
-
"weight": {
|
|
54
|
-
"type": "number",
|
|
55
|
-
"description": "Item weight on heatmap."
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
"markers": {
|
|
63
|
-
"type": "array",
|
|
64
|
-
"description": "A list of Markers with marker options.",
|
|
65
|
-
"items": {
|
|
66
|
-
"type": "object",
|
|
67
|
-
"properties": {
|
|
68
|
-
"position": {
|
|
69
|
-
"type": "object",
|
|
70
|
-
"properties": {
|
|
71
|
-
"lat": {
|
|
72
|
-
"type": "number",
|
|
73
|
-
"description": "Lateral coordinate."
|
|
74
|
-
},
|
|
75
|
-
"lng": {
|
|
76
|
-
"type": "number",
|
|
77
|
-
"description": "Longitudinal coordinate."
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
"label": {
|
|
82
|
-
"type": "string",
|
|
83
|
-
"description": "Label displayed on marker."
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
"markerClusterers": {
|
|
89
|
-
"type": "array",
|
|
90
|
-
"description": "A list of Marker Clusterers with marker clusterer options.",
|
|
91
|
-
"items": {
|
|
92
|
-
"type": "object",
|
|
93
|
-
"properties": {
|
|
94
|
-
"markers": {
|
|
95
|
-
"type": "array",
|
|
96
|
-
"description": "A list of Markers with marker options.",
|
|
97
|
-
"items": {
|
|
98
|
-
"type": "object",
|
|
99
|
-
"properties": {
|
|
100
|
-
"position": {
|
|
101
|
-
"type": "object",
|
|
102
|
-
"properties": {
|
|
103
|
-
"lat": {
|
|
104
|
-
"type": "number",
|
|
105
|
-
"description": "Lateral coordinate."
|
|
106
|
-
},
|
|
107
|
-
"lng": {
|
|
108
|
-
"type": "number",
|
|
109
|
-
"description": "Longitudinal coordinate."
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
"label": {
|
|
114
|
-
"type": "string",
|
|
115
|
-
"description": "Label displayed on marker."
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
},
|
|
120
|
-
"options": {
|
|
121
|
-
"type": "object",
|
|
122
|
-
"properties": {
|
|
123
|
-
"averageCenter": {
|
|
124
|
-
"type": "boolean",
|
|
125
|
-
"description": "Whether the position of a cluster marker should be the average position of all markers in the cluster."
|
|
126
|
-
},
|
|
127
|
-
"gridSize": {
|
|
128
|
-
"type": "number",
|
|
129
|
-
"description": "The grid size of a cluster in pixels."
|
|
130
|
-
},
|
|
131
|
-
"maxZoom": {
|
|
132
|
-
"type": "number",
|
|
133
|
-
"description": "The maximum zoom level at which clustering is enabled."
|
|
134
|
-
},
|
|
135
|
-
"minimumClusterSize": {
|
|
136
|
-
"type": "number",
|
|
137
|
-
"description": "The minimum number of markers needed to form a cluster."
|
|
138
|
-
},
|
|
139
|
-
"styles": {
|
|
140
|
-
"type": "array",
|
|
141
|
-
"description": "Styles of the cluster markers to be used."
|
|
142
|
-
},
|
|
143
|
-
"zoomOnClick": {
|
|
144
|
-
"type": "boolean",
|
|
145
|
-
"description": "Whether to zoom the map when a cluster marker is clicked."
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
},
|
|
152
|
-
"infoWindow": {
|
|
153
|
-
"type": "object",
|
|
154
|
-
"description": "infoWindow options, see <a href='https://developers.google.com/maps/documentation/javascript/reference/info-window#InfoWindowOptions'>more</a>.",
|
|
155
|
-
"properties": {
|
|
156
|
-
"visible": {
|
|
157
|
-
"type": "boolean",
|
|
158
|
-
"description": "When visible is true, blocks inside infoWindow content area will be rendered."
|
|
159
|
-
},
|
|
160
|
-
"position": {
|
|
161
|
-
"type": "object",
|
|
162
|
-
"properties": {
|
|
163
|
-
"lat": {
|
|
164
|
-
"type": "number",
|
|
165
|
-
"description": "Lateral coordinate."
|
|
166
|
-
},
|
|
167
|
-
"lng": {
|
|
168
|
-
"type": "number",
|
|
169
|
-
"description": "Longitudinal coordinate."
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
},
|
|
175
|
-
"style": {
|
|
176
|
-
"type": "object",
|
|
177
|
-
"description": "Custom map css properties to apply to map block."
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
},
|
|
181
|
-
"events": {
|
|
182
|
-
"type": "object",
|
|
183
|
-
"additionalProperties": false,
|
|
184
|
-
"properties": {
|
|
185
|
-
"onBoundsChanged": {
|
|
186
|
-
"type": "array",
|
|
187
|
-
"description": "Trigger actions when the bounds of the map are changed."
|
|
188
|
-
},
|
|
189
|
-
"onCenterChanged": {
|
|
190
|
-
"type": "array",
|
|
191
|
-
"description": "Trigger actions when the center of the map is changed."
|
|
192
|
-
},
|
|
193
|
-
"onClick": {
|
|
194
|
-
"type": "array",
|
|
195
|
-
"description": "Trigger actions when the map is clicked."
|
|
196
|
-
},
|
|
197
|
-
"onMarkerClick": {
|
|
198
|
-
"type": "array",
|
|
199
|
-
"description": "Trigger actions when marker is clicked."
|
|
200
|
-
},
|
|
201
|
-
"onZoomChanged": {
|
|
202
|
-
"type": "array",
|
|
203
|
-
"description": "Trigger actions when the zoom on the map is changed."
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
}
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"type": "object",
|
|
3
|
-
"properties": {
|
|
4
|
-
"type": "object",
|
|
5
|
-
"additionalProperties": false,
|
|
6
|
-
"properties": {
|
|
7
|
-
"map": {
|
|
8
|
-
"type": "object",
|
|
9
|
-
"description": "Map settings object.",
|
|
10
|
-
"properties": {
|
|
11
|
-
"center": {
|
|
12
|
-
"type": "object",
|
|
13
|
-
"description": "A coordinate position object by which to center the map.",
|
|
14
|
-
"properties": {
|
|
15
|
-
"lat": {
|
|
16
|
-
"type": "number",
|
|
17
|
-
"description": "Lateral coordinate."
|
|
18
|
-
},
|
|
19
|
-
"lng": {
|
|
20
|
-
"type": "number",
|
|
21
|
-
"description": "Longitudinal coordinate."
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
"zoom": {
|
|
26
|
-
"type": "number",
|
|
27
|
-
"description": "Map zoom level."
|
|
28
|
-
},
|
|
29
|
-
"options": {
|
|
30
|
-
"type": "object",
|
|
31
|
-
"description": "Map options, see <a href='https://developers.google.com/maps/documentation/javascript/reference/map#MapOptions'>more</a>."
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
"heatmap": {
|
|
36
|
-
"type": "object",
|
|
37
|
-
"description": "Add a heatmap layer, see more <a href='https://developers.google.com/maps/documentation/javascript/reference/visualization#HeatmapLayerOptions'>heatmap options</a>. This will automatically load the 'visualization' library.",
|
|
38
|
-
"properties": {
|
|
39
|
-
"data": {
|
|
40
|
-
"type": "array",
|
|
41
|
-
"description": "A list of heatmap data points.",
|
|
42
|
-
"items": {
|
|
43
|
-
"type": "object",
|
|
44
|
-
"properties": {
|
|
45
|
-
"lat": {
|
|
46
|
-
"type": "number",
|
|
47
|
-
"description": "Lateral coordinate."
|
|
48
|
-
},
|
|
49
|
-
"lng": {
|
|
50
|
-
"type": "number",
|
|
51
|
-
"description": "Longitudinal coordinate."
|
|
52
|
-
},
|
|
53
|
-
"weight": {
|
|
54
|
-
"type": "number",
|
|
55
|
-
"description": "Item weight on heatmap."
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
"markers": {
|
|
63
|
-
"type": "array",
|
|
64
|
-
"description": "A list of Markers with marker options.",
|
|
65
|
-
"items": {
|
|
66
|
-
"type": "object",
|
|
67
|
-
"properties": {
|
|
68
|
-
"position": {
|
|
69
|
-
"type": "object",
|
|
70
|
-
"properties": {
|
|
71
|
-
"lat": {
|
|
72
|
-
"type": "number",
|
|
73
|
-
"description": "Lateral coordinate."
|
|
74
|
-
},
|
|
75
|
-
"lng": {
|
|
76
|
-
"type": "number",
|
|
77
|
-
"description": "Longitudinal coordinate."
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
"label": {
|
|
82
|
-
"type": "string",
|
|
83
|
-
"description": "Label displayed on marker."
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
"infoWindow": {
|
|
89
|
-
"type": "object",
|
|
90
|
-
"description": "infoWindow options, see <a href='https://developers.google.com/maps/documentation/javascript/reference/info-window#InfoWindowOptions'>more</a>.",
|
|
91
|
-
"properties": {
|
|
92
|
-
"visible": {
|
|
93
|
-
"type": "boolean",
|
|
94
|
-
"description": "When visible is true, blocks inside infoWindow content area will be rendered."
|
|
95
|
-
},
|
|
96
|
-
"position": {
|
|
97
|
-
"type": "object",
|
|
98
|
-
"properties": {
|
|
99
|
-
"lat": {
|
|
100
|
-
"type": "number",
|
|
101
|
-
"description": "Lateral coordinate."
|
|
102
|
-
},
|
|
103
|
-
"lng": {
|
|
104
|
-
"type": "number",
|
|
105
|
-
"description": "Longitudinal coordinate."
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
},
|
|
111
|
-
"style": {
|
|
112
|
-
"type": "object",
|
|
113
|
-
"description": "Custom map css properties to apply to map block."
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
},
|
|
117
|
-
"events": {
|
|
118
|
-
"type": "object",
|
|
119
|
-
"additionalProperties": false,
|
|
120
|
-
"properties": {
|
|
121
|
-
"onClick": {
|
|
122
|
-
"type": "array",
|
|
123
|
-
"description": "Trigger actions when the map is clicked."
|
|
124
|
-
},
|
|
125
|
-
"onMarkerClick": {
|
|
126
|
-
"type": "array",
|
|
127
|
-
"description": "Trigger actions when marker is clicked."
|
|
128
|
-
},
|
|
129
|
-
"onZoomChanged": {
|
|
130
|
-
"type": "array",
|
|
131
|
-
"description": "Trigger actions when the zoom on the map is changed."
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"type": "object",
|
|
3
|
-
"properties": {
|
|
4
|
-
"type": "object",
|
|
5
|
-
"additionalProperties": false,
|
|
6
|
-
"properties": {
|
|
7
|
-
"apiKey": {
|
|
8
|
-
"type": "string",
|
|
9
|
-
"description": "Your Google Maps API key."
|
|
10
|
-
},
|
|
11
|
-
"libraries": {
|
|
12
|
-
"type": "array",
|
|
13
|
-
"description": "A list of Google libraries, see <a href='https://developers.google.com/maps/documentation/javascript/libraries'>more</a>.",
|
|
14
|
-
"items": {
|
|
15
|
-
"type": "string",
|
|
16
|
-
"enum": [
|
|
17
|
-
"drawing",
|
|
18
|
-
"geometry",
|
|
19
|
-
"journeySharing",
|
|
20
|
-
"localContext",
|
|
21
|
-
"places",
|
|
22
|
-
"visualization"
|
|
23
|
-
]
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|