-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathGoogleMaps.xml
More file actions
260 lines (260 loc) · 16.8 KB
/
GoogleMaps.xml
File metadata and controls
260 lines (260 loc) · 16.8 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
<?xml version="1.0" encoding="utf-8"?>
<widget id="com.mendix.widget.custom.GoogleMaps.GoogleMaps" needsEntityContext="true" offlineCapable="true" xmlns="http://www.mendix.com/widget/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mendix.com/widget/1.0/ ../xsd/widget.xsd">
<name>Google Maps</name>
<description>Show address on Google Maps</description>
<icon>iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAHt0lEQVR42u1ZC2wUVRRFUH4SlYD4QSWRCIlBTRDQQED5mZ1pC7R0+6NbCpZKgIJYFAXFQtVoTUARCAShfAVMgf2hEMASQEtCCYkICAoBjFTKRwifmdnaPt8NtMycndmZZt8qS/qSlzSdO++ee+a8d+9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ieQgHmw9lsR8LYgjNCSt2yMP5R2F3B+1gLkCLALCCSgCNaebfPRzurtKYbG+MNmpC84328BchxsgeUCCZgKGL6wIWA/XI31de7NvsPzWoCcAQR8JpCAsYCh1IYALx6a0ZwBUyCwhQ5vjKYJJGAkBLTJBvMiUT0JLVYCi820ALkaCBgtkIAhgGGnDeaZYF8SDQFrYbFch7/PywJvpHsDhkobzLlgvzYaAnbBYkMtCDgATUhvgQR0Awy/2WAeCvbl0RBwnBaJ83k8mv13Ld4JoBiiUcDpu0ABp6MhwAU/OsbVvIXd1axpNI2m0TRMxr9qAToDl7LqegAAAABJRU5ErkJggg==</icon>
<properties>
<!-- General -->
<property key="dataSource" type="enumeration" defaultValue="context">
<caption>Data source</caption>
<category>General</category>
<description>Source of the locations</description>
<enumerationValues>
<enumerationValue key="context">Context</enumerationValue>
<enumerationValue key="XPath">Database</enumerationValue>
<enumerationValue key="microflow">Microflow</enumerationValue>
<enumerationValue key="static">Static</enumerationValue>
</enumerationValues>
</property>
<property key="defaultCenterAddress" type="string" required="false">
<caption>Default center address</caption>
<category>General</category>
<description>Map center location when no locations are available. The address will be used to lookup the location. No lookup is done when 'Default center latitude' and 'Default center longitude' contains a valid coordinate</description>
</property>
<property key="defaultCenterLatitude" type="string" required="false">
<caption>Default center latitude</caption>
<category>General</category>
<description/>
</property>
<property key="defaultCenterLongitude" type="string" required="false">
<caption>Default center longitude</caption>
<category>General</category>
<description/>
</property>
<property key="apiKey" type="string" required="false">
<caption>API key</caption>
<category>General</category>
<description>The Google Maps Javascript API v3 does not require an API key to function correctly. However, Google strongly encourages you to load the Maps API using an APIs key.
WARNING: Address lookups are Google APIs calls which are limited in the free trier, it is recommended to use longitude latitude coordinates</description>
</property>
<!-- Data source -->
<property key="addressAttributeContext" type="attribute" required="false">
<caption>Address attribute </caption>
<category>Context</category>
<description>The address will be used to lookup the location. No lookup is done when 'Latitude attribute' and 'Longitude attribute' contains a valid coordinate</description>
<attributeTypes>
<attributeType name="String"/>
</attributeTypes>
</property>
<property key="latitudeAttributeContext" type="attribute" required="false">
<caption>Latitude attribute </caption>
<category>Context</category>
<description/>
<attributeTypes>
<attributeType name="Decimal"/>
</attributeTypes>
</property>
<property key="longitudeAttributeContext" type="attribute" required="false">
<caption>Longitude attribute </caption>
<category>Context</category>
<description/>
<attributeTypes>
<attributeType name="Decimal"/>
</attributeTypes>
</property>
<property key="locationsEntity" type="entity" required="false" allowNonPersistableEntities="true">
<caption>Locations entity</caption>
<category>Database / Microflow</category>
<description/>
</property>
<property key="entityConstraint" type="entityConstraint" entityProperty="locationsEntity" required="false">
<caption>XPath constraint</caption>
<category>Database / Microflow</category>
<description>Constraint the 'Data source' 'Database' locations. It could be used with relation to '[%CurrentObject%]'</description>
</property>
<property key="dataSourceMicroflow" type="microflow" required="false">
<caption>Microflow</caption>
<category>Database / Microflow</category>
<description>The 'Datasource' 'Microflow' that returns the list of locations</description>
<returnType type="Object" entityProperty="locationsEntity" isList="true"/>
</property>
<property key="addressAttribute" type="attribute" entityProperty="locationsEntity" required="false">
<caption>Address attribute</caption>
<category>Database / Microflow</category>
<description>The address will be used to lookup the location. No lookup is done when 'Latitude attribute' and 'Longitude attribute' contains a valid coordinate</description>
<attributeTypes>
<attributeType name="String"/>
</attributeTypes>
</property>
<property key="latitudeAttribute" type="attribute" entityProperty="locationsEntity" required="false">
<caption>Latitude attribute</caption>
<category>Database / Microflow</category>
<description/>
<attributeTypes>
<attributeType name="Decimal"/>
</attributeTypes>
</property>
<property key="longitudeAttribute" type="attribute" entityProperty="locationsEntity" required="false">
<caption>Longitude attribute </caption>
<category>Database / Microflow</category>
<description/>
<attributeTypes>
<attributeType name="Decimal"/>
</attributeTypes>
</property>
<property key="staticLocations" type="object" isList="true" required="false">
<caption>Static locations</caption>
<category>Static</category>
<description/>
<properties>
<property key="address" type="string" required="false">
<caption>Address</caption>
<category>Location</category>
<description>The address will be used to lookup the location. No lookup is done when 'Latitude' and 'Longitude' contains a valid coordinate</description>
</property>
<property key="latitude" type="string" required="false">
<caption>Latitude</caption>
<category>Location</category>
<description/>
</property>
<property key="longitude" type="string" required="false">
<caption>Longitude</caption>
<category>Location</category>
<description/>
</property>
<property key="icon" type="image" required="false">
<caption>Marker image</caption>
<category>Location</category>
<description/>
</property>
</properties>
</property>
<!-- Appearance -->
<property key="autoZoom" type="boolean" defaultValue="true">
<caption>Auto zoom</caption>
<category>Appearance</category>
<description>Initial best fit zoom based the available makers. It will overwrite the specified 'Zoom level'</description>
</property>
<property key="zoomLevel" type="integer" defaultValue="10">
<caption>Zoom level</caption>
<category>Appearance</category>
<description>1: World, 5: Landmass/continent, 10: City, 15: Streets, 20: Buildings</description>
</property>
<property key="widthUnit" type="enumeration" defaultValue="percentage">
<caption>Width unit</caption>
<category>Appearance</category>
<description/>
<enumerationValues>
<enumerationValue key="percentage">Percentage</enumerationValue>
<enumerationValue key="pixels">Pixels</enumerationValue>
</enumerationValues>
</property>
<property key="width" type="integer" defaultValue="100">
<caption>Map width</caption>
<category>Appearance</category>
<description/>
</property>
<property key="heightUnit" type="enumeration" defaultValue="percentageOfWidth">
<caption>Height unit</caption>
<category>Appearance</category>
<description>'Percentage of width' is the aspect ratio, 'Pixels' is absolute. Warning: the 'Percentage of parent' only works when the parent has an absolute height, else it will not display</description>
<enumerationValues>
<enumerationValue key="percentageOfWidth">Percentage of width</enumerationValue>
<enumerationValue key="pixels">Pixels</enumerationValue>
<enumerationValue key="percentageOfParent">Percentage of parent</enumerationValue>
</enumerationValues>
</property>
<property key="height" type="integer" defaultValue="75">
<caption>Map height</caption>
<category>Appearance</category>
<description/>
</property>
<!-- Map controls -->
<property key="optionDrag" type="boolean" defaultValue="true">
<caption>Drag</caption>
<category>Controls</category>
<description>Enable moving center by dragging</description>
</property>
<property key="optionScroll" type="boolean" defaultValue="true">
<caption>Scroll to zoom</caption>
<category>Controls</category>
<description>Enable zooming the map using the mouse scroll wheel</description>
</property>
<property key="optionMapControl" type="boolean" defaultValue="true">
<caption>Map type</caption>
<category>Controls</category>
<description>Show map type (Map, Terrain, Satellite) control, positioned at top left corner on the map</description>
</property>
<property key="optionStreetView" type="boolean" defaultValue="true">
<caption>Street view</caption>
<category>Controls</category>
<description>Show the Street View Pegman control</description>
</property>
<property key="optionZoomControl" type="boolean" defaultValue="true">
<caption>Zoom</caption>
<category>Controls</category>
<description>Show zoom control [ + ] [ - ]</description>
</property>
<!-- Custom markers -->
<property key="defaultMakerIcon" type="image" required="false">
<caption>Default image</caption>
<category>Markers</category>
<description>Overwrite the default marker image of the widget</description>
</property>
<property key="markerImageAttributeContext" type="attribute" required="false">
<caption>Image attribute (Context)</caption>
<category>Markers</category>
<description>For 'Datasource' 'Context'; Display custom markers based on the enumeration attribute value, as configured in the 'Images' list</description>
<attributeTypes>
<attributeType name="Enum"/>
</attributeTypes>
</property>
<property key="markerImageAttribute" type="attribute" required="false" entityProperty="locationsEntity">
<caption>Image attribute (Database / Microflow)</caption>
<category>Markers</category>
<description>For 'Datasource' 'Database' or 'Microflow'; Display custom markers based on the enumeration attribute value, as configured in the 'Images' list</description>
<attributeTypes>
<attributeType name="Enum"/>
</attributeTypes>
</property>
<property key="markerImages" type="object" isList="true" required="false">
<caption>Images</caption>
<category>Markers</category>
<description>Marker images for the configured 'Image attribute'. When the attribute value does not match a name, the marker will show the 'Default image' when available, or the standard marker</description>
<properties>
<property key="enumKey" type="string">
<caption>Enumeration name</caption>
<category>Appearance</category>
<description>The enumeration name as a string. (Empty enumeration names can not be used)</description>
</property>
<property key="enumImage" type="image">
<caption>Image</caption>
<category>Appearance</category>
<description/>
</property>
</properties>
</property>
<property key="markerLabelAttributeContext" type="attribute" required="false">
<caption>Marker label (Context)</caption>
<category>Markers</category>
<description>For 'Datasource' 'Context'; Add a single character label inside the default marker to identify markers.</description>
<attributeTypes>
<attributeType name="String"/>
</attributeTypes>
</property>
<property key="markerLabelAttribute" type="attribute" required="false" entityProperty="locationsEntity">
<caption>Marker label (Database / Microflow)</caption>
<category>Markers</category>
<description>For 'Datasource' 'Database' or 'Microflow'; Add a single character label inside the default marker to identify markers.</description>
<attributeTypes>
<attributeType name="String"/>
</attributeTypes>
</property>
<!-- Maps styles -->
<property key="mapStyles" type="string" multiline="true" required="false">
<caption>Map styles</caption>
<category>Styles</category>
<description>JSON array with Google Maps styles. See https://developers.google.com/maps/documentation/javascript/style-reference This can be generated with tools like https://mapstyle.withgoogle.com</description>
</property>
</properties>
</widget>