Squiz Matrix
4.12.2
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
All
Data Structures
Namespaces
Functions
Variables
Pages
google_map_management.inc
1
<?php
18
require_once SQ_INCLUDE_PATH.
'/asset_management.inc'
;
19
31
class
Google_Map_Management
extends
Asset_Management
32
{
33
34
39
function
Google_Map_Management
(&$pm)
40
{
41
$this->
Asset_Management
($pm);
42
$this->vars = Array (
43
'api_key'
=> Array (
44
'added'
=>
'0.1'
,
45
'type'
=>
'text'
,
46
'default'
=>
''
,
47
'description'
=>
'The API Key provided by Google'
,
48
'is_admin'
=> FALSE,
49
'parameters'
=> Array (
50
'allow_empty'
=> TRUE,
51
),
52
),
53
'map_code'
=> Array (
54
'added'
=>
'0.1'
,
55
'type'
=>
'text'
,
56
'default'
=>
'<div id="map" style="width:500px;height:500px;border:solid 0px;"></div>
57
<script type="text/javascript">
58
gmap_init();
59
</script>'
,
60
'description'
=>
'Map code'
,
61
'is_admin'
=> FALSE,
62
'parameters'
=> Array (
63
'allow_empty'
=> TRUE,
64
),
65
),
66
'street_view_code'
=> Array (
67
'added'
=>
'0.1'
,
68
'type'
=>
'text'
,
69
'default'
=>
'<div id="street_view" style="width:500px; height:500px"></div>'
,
70
'description'
=>
'Map code'
,
71
'is_admin'
=> FALSE,
72
'parameters'
=> Array (
73
'allow_empty'
=> TRUE,
74
),
75
),
76
'map_control'
=> Array(
77
'added'
=>
'0.0.1'
,
78
'type'
=>
'selection'
,
79
'default'
=>
'none'
,
80
'description'
=>
''
,
81
'parameters'
=> Array(
82
'options'
=> Array(
83
'none'
=>
'None'
,
84
'large'
=>
'Large Control'
,
85
'small'
=>
'Small Control'
,
86
'zoom'
=>
'Zoom Control'
,
87
),
88
'multiple'
=> FALSE,
89
'allow_empty'
=> FALSE,
90
),
91
92
),
93
'map_type_control'
=> Array (
94
'added'
=>
'0.1'
,
95
'type'
=>
'boolean'
,
96
'default'
=>
'FALSE'
,
97
'description'
=>
'Enable or Disable the Map Type Control of the map'
,
98
'is_admin'
=>
'1'
,
99
'parameters'
=> Array (
100
'allow_empty'
=> FALSE,
101
),
102
),
103
'scale_control'
=> Array (
104
'added'
=>
'0.1'
,
105
'type'
=>
'boolean'
,
106
'default'
=>
'FALSE'
,
107
'description'
=>
'Enable or Disable the Scale Control of the map'
,
108
'is_admin'
=>
'1'
,
109
'parameters'
=> Array (
110
'allow_empty'
=> FALSE,
111
),
112
),
113
'default_icon_size'
=> Array (
114
'added'
=>
'0.1'
,
115
'type'
=>
'boolean'
,
116
'default'
=>
'TRUE'
,
117
'description'
=>
'Use default google icon size'
,
118
'is_admin'
=>
'1'
,
119
'parameters'
=> Array (
120
'allow_empty'
=> FALSE,
121
),
122
),
123
'use_google_marker_icon'
=> Array (
124
'added'
=>
'0.1'
,
125
'type'
=>
'boolean'
,
126
'default'
=>
'TRUE'
,
127
'description'
=>
'Use default google marker icon'
,
128
'is_admin'
=>
'1'
,
129
'parameters'
=> Array (
130
'allow_empty'
=> FALSE,
131
),
132
),
133
'default_marker_icon'
=> Array (
134
'added'
=>
'0.1'
,
135
'type'
=>
'text'
,
136
'default'
=>
''
,
137
'description'
=>
'The default icon for markers on the map'
,
138
'is_admin'
=> FALSE,
139
'parameters'
=> Array (
140
'allow_empty'
=> TRUE,
141
),
142
),
143
'default_icon_width'
=> Array (
144
'added'
=>
'0.1'
,
145
'type'
=>
'int'
,
146
'default'
=>
'25'
,
147
'description'
=>
'The default width of the icon'
,
148
'is_admin'
=> FALSE,
149
'parameters'
=> Array (
150
'allow_empty'
=> FALSE,
151
),
152
),
153
'default_icon_height'
=> Array (
154
'added'
=>
'0.1'
,
155
'type'
=>
'int'
,
156
'default'
=>
'25'
,
157
'description'
=>
'The default height of the icon'
,
158
'is_admin'
=> FALSE,
159
'parameters'
=> Array (
160
'allow_empty'
=> FALSE,
161
),
162
),
163
'default_latitude'
=> Array (
164
'added'
=>
'0.1'
,
165
'type'
=>
'text'
,
166
'default'
=>
'0'
,
167
'description'
=>
'The default latitude of the map'
,
168
'is_admin'
=> FALSE,
169
'parameters'
=> Array (
170
'allow_empty'
=> FALSE,
171
),
172
),
173
'default_longitude'
=> Array (
174
'added'
=>
'0.1'
,
175
'type'
=>
'text'
,
176
'default'
=>
'0'
,
177
'description'
=>
'The default longitude of the map'
,
178
'is_admin'
=>
'1'
,
179
'parameters'
=> Array (
180
'allow_empty'
=> FALSE,
181
),
182
),
183
'default_zoom_level'
=> Array (
184
'added'
=>
'0.1'
,
185
'type'
=>
'int'
,
186
'default'
=>
'10'
,
187
'description'
=>
'The default zoom level of the map'
,
188
'is_admin'
=> FALSE,
189
'parameters'
=> Array (
190
'allow_empty'
=> FALSE,
191
),
192
),
193
'default_map_type'
=> Array(
194
'added'
=>
'0.0.1'
,
195
'type'
=>
'selection'
,
196
'default'
=>
'ROADMAP'
,
197
'description'
=>
''
,
198
'parameters'
=> Array(
199
'options'
=> Array(
200
'ROADMAP'
=>
'Road Map'
,
201
'SATELLITE'
=>
'Satellite Map'
,
202
'HYBRID'
=>
'Hybrid Map'
,
203
'TERRAIN'
=>
'Terrain Map'
,
204
),
205
'multiple'
=> FALSE,
206
'allow_empty'
=> FALSE,
207
),
208
209
),
210
'root_assetid'
=> Array(
211
'added'
=>
'0.1'
,
212
'type'
=>
'assetid'
,
213
'default'
=>
''
,
214
'description'
=>
'Root node where user information is stored under.'
,
215
),
216
'parameter_map'
=> Array (
217
'added'
=>
'0.1'
,
218
'type'
=>
'parameter_map'
,
219
'default'
=> Array(),
220
'parameters'
=> Array (
221
'parameters'
=> Array(),
222
),
223
),
224
'dynamic_vars'
=> Array(
225
'added'
=>
'0.1'
,
226
'type'
=>
'serialise'
,
227
'default'
=> Array (
228
'latitude'
=>
''
,
229
'longitude'
=>
''
,
230
'description'
=>
''
,
231
'zoom_level'
=>
''
,
232
'map_type'
=>
''
,
233
),
234
),
235
'enable_listing'
=> Array (
236
'added'
=>
'0.1'
,
237
'type'
=>
'boolean'
,
238
'default'
=>
'FALSE'
,
239
'description'
=>
'Enable or Disable the Listing capability'
,
240
'is_admin'
=> FALSE,
241
'parameters'
=> Array (
242
'allow_empty'
=> FALSE,
243
),
244
),
245
'use_custom_popup_html'
=> Array (
246
'added'
=>
'0.1'
,
247
'type'
=>
'boolean'
,
248
'default'
=>
'FALSE'
,
249
'description'
=>
'Enable or Disable custom HTML popup'
,
250
'is_admin'
=> FALSE,
251
'parameters'
=> Array (
252
'allow_empty'
=> FALSE,
253
),
254
),
255
'enable_geocoder'
=> Array (
256
'added'
=>
'0.1'
,
257
'type'
=>
'boolean'
,
258
'default'
=>
'FALSE'
,
259
'description'
=>
'Use of Geocoding service'
,
260
'is_admin'
=> FALSE,
261
'parameters'
=> Array (
262
'allow_empty'
=> FALSE,
263
),
264
),
265
'asset_types_keywords'
=> Array (
266
'added'
=>
'0.1'
,
267
'type'
=>
'serialise'
,
268
'default'
=> Array (),
269
'description'
=>
'Store all the associate'
,
270
'is_admin'
=> FALSE,
271
),
272
'toggle_root_nodes'
=> Array (
273
'added'
=>
'0.1'
,
274
'type'
=>
'boolean'
,
275
'default'
=>
'FALSE'
,
276
'description'
=>
'Enable or Disable toogling marker of different rootnodes.'
,
277
'is_admin'
=> FALSE,
278
'parameters'
=> Array (
279
'allow_empty'
=> FALSE,
280
),
281
),
282
'latitude_keyword'
=> Array (
283
'added'
=>
'0.1'
,
284
'type'
=>
'text'
,
285
'default'
=>
''
,
286
'description'
=>
'The latitude keyword to be used for the map'
,
287
'is_admin'
=> FALSE,
288
'parameters'
=> Array (
289
'allow_empty'
=> FALSE,
290
),
291
),
292
'longitude_keyword'
=> Array (
293
'added'
=>
'0.1'
,
294
'type'
=>
'text'
,
295
'default'
=>
''
,
296
'description'
=>
'The longitude keyword to be used for the map'
,
297
'is_admin'
=> FALSE,
298
'parameters'
=> Array (
299
'allow_empty'
=> FALSE,
300
),
301
),
302
'description_keyword'
=> Array (
303
'added'
=>
'0.1'
,
304
'type'
=>
'text'
,
305
'default'
=>
''
,
306
'description'
=>
'The description keyword to be used for the map'
,
307
'is_admin'
=> FALSE,
308
'parameters'
=> Array (
309
'allow_empty'
=> FALSE,
310
),
311
),
312
'enable_street_view'
=> Array (
313
'added'
=>
'0.1'
,
314
'type'
=>
'boolean'
,
315
'default'
=>
'FALSE'
,
316
'description'
=>
'Enable or Disable Google Street View capability'
,
317
'is_admin'
=> FALSE,
318
'parameters'
=> Array (
319
'allow_empty'
=> FALSE,
320
),
321
),
322
'enable_create_location'
=> Array (
323
'added'
=>
'0.1'
,
324
'type'
=>
'boolean'
,
325
'default'
=>
'FALSE'
,
326
'description'
=>
'Enable or Disable creating of new Google Map Location'
,
327
'is_admin'
=> FALSE,
328
'parameters'
=> Array (
329
'allow_empty'
=> FALSE,
330
),
331
),
332
);
333
334
}
//end constructor
335
336
343
function
_getFileList
()
344
{
345
return
Array(
346
'css/style.css'
,
347
'js/map_lib.js'
,
348
'images/star_icon.png'
,
349
'images/globe.png'
,
350
'images/arrowdown.png'
,
351
'images/glasses.png'
,
352
'images/binocular.png'
,
353
'images/map.png'
,
354
);
355
356
}
//end _getFileList()
357
358
365
function
getEventList
()
366
{
367
return
Array(
368
Array(
369
'event_name'
=>
'requestKeywords'
,
370
'broadcast_type_code'
=>
'content_type'
,
371
'broadcast_strict_type_code'
=> FALSE,
372
'options'
=> Array(
373
'side_of_link'
=>
'major'
,
374
'indirect'
=> TRUE,
375
'is_exclusive'
=> NULL,
376
'is_dependant'
=> 1,
377
'value'
=>
''
,
378
'link_type'
=> SQ_LINK_TYPE_2 | SQ_LINK_TYPE_1,
379
),
380
),
381
);
382
383
}
//end getEventList()
384
385
386
}
//end class
387
?>
squiz_matrix
packages
google_maps
google_map
google_map_management.inc
Generated on Tue Jan 29 2013 14:05:02 for Squiz Matrix by
1.8.3.1