/
ngeox.js
2659 lines (2039 loc) · 56.3 KB
/
ngeox.js
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
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/**
* This file contains the typedefs of the options of the methods.
* It can be included as extern if you want to prevent renaming.
* @externs
*/
/**
* @private
* @const
*/
let ngeox = {};
/**
* @record
* @struct
*/
ngeox.AttributeBase = function() {};
/**
* Set only if the attribute is a geometry type. Determines the type of
* geometry.
* @type {string|undefined}
*/
ngeox.AttributeBase.prototype.geomType;
/**
* Set only if the attribute is a number type. Determines the type of number.
* @type {string|undefined}
*/
ngeox.AttributeBase.prototype.numType;
/**
* The attribute type, which determines how to render it.
* @type {string|undefined}
*/
ngeox.AttributeBase.prototype.type;
/**
* A feature attribute definition.
* @record
* @struct
* @extends ngeox.AttributeBase
*/
ngeox.Attribute = function() {};
/**
* The list of possible values for the attribute.
* @type {Array.<string>|undefined}
*/
ngeox.Attribute.prototype.choices;
/**
* Specifies the maximum number of character for the attribute value.
* @type {number|undefined}
*/
ngeox.Attribute.prototype.maxLength;
/**
* The attribute name.
* @type {string}
*/
ngeox.Attribute.prototype.name;
/**
* The attribute alias.
* @type {string|null}
*/
ngeox.Attribute.prototype.alias;
/**
* Whether the attribute required to have a value set or not. Defaults to
* `false`.
* @type {boolean|undefined}
*/
ngeox.Attribute.prototype.required;
/**
* The attribute type, which determines how to render it.
* @type {string}
*/
ngeox.Attribute.prototype.type;
/**
* The format used in the date, time and datetime type.
* @type {string|undefined}
*/
ngeox.Attribute.prototype.format;
/**
* The mask used in the date, time and datetime type.
* @type {string|undefined}
*/
ngeox.Attribute.prototype.mask;
/**
* The options to use when creating a filter using the `ngeo.RuleHelper`
* service.
*
* @typedef {{
* dataSource: (ngeox.datasource.DataSource),
* incTime: (boolean|undefined),
* filter: (ol.format.filter.Filter|undefined),
* filterRules: (!Array.<ngeox.rule.Rule>|undefined),
* srsName: (string|undefined)
* }}
*/
ngeox.CreateFilterOptions;
/**
* The data source from which to get the filterRules that will be used to
* create the OL filter object.
* @type {ngeox.datasource.DataSource}
*/
ngeox.CreateFilterOptions.prototype.dataSource;
/**
* Whether to include the data source's time values in the filter created. The
* property that contains those values is `timeRangeValue`. Defaults to `false`.
* When building a filter for WMS, it should not be included as it is given as
* the TIME parameter of the query instead. When used for a WFS request, it
* should be included in the filter.
* @type {boolean|undefined}
*/
ngeox.CreateFilterOptions.prototype.incTime;
/**
* A filter that is directly given the the method instead of creating one.
* Useful to automatically combine the time values.
* @type {ol.format.filter.Filter|undefined}
*/
ngeox.CreateFilterOptions.prototype.filter;
/**
* An alternative list of filter rules to use instead of those that are defined
* within the data source. Useful when one wants to get the data of a given
* filter without applying it to the data source.
* @type {Array.<!ngeox.rule.Rule>|undefined}
*/
ngeox.CreateFilterOptions.prototype.filterRules;
/**
* The SRS name used with the spatial filters created by the method.
* @type {string|undefined}
*/
ngeox.CreateFilterOptions.prototype.srsName;
/**
* Dimensions definition.
* @typedef {Object.<string, ?string>}
*/
ngeox.Dimensions;
/**
* Active dimensions definition, where the value can't be null.
* @typedef {Object.<string, string>}
*/
ngeox.DimensionsActive;
/**
* @typedef {function(string, string, string=)}
*/
ngeox.Download;
/**
* The options to use when sending GetFeature/GetFeatureInfo requests using
* the querent or map query service.
* @typedef {{
* coordinate: (ol.Coordinate|undefined),
* dataSources: (Array.<ngeox.datasource.DataSource>|undefined),
* extent: (ol.Extent|undefined),
* filter: (ol.format.filter.Filter|undefined),
* limit: (number|undefined),
* map: (ol.Map),
* queryableDataSources: (ngeox.QueryableDataSources|undefined),
* tolerancePx: (number|undefined),
* wfsCount: (boolean|undefined)
* }}
*/
ngeox.IssueGetFeaturesOptions;
/**
* The coordinate to issue the requests with, which can end up with either
* WMS or WFS requests.
* @type {ol.Coordinate|undefined}
*/
ngeox.IssueGetFeaturesOptions.prototype.coordinate;
/**
* List of data sources to query. Only those that meet the requirements will
* actually be queried. The querent service requires either the `dataSources`
* or `queryableDataSources` property to be set.
* @type {Array.<ngeox.datasource.DataSource>|undefined}
*/
ngeox.IssueGetFeaturesOptions.prototype.dataSources;
/**
* The extent to issue the requests with, which can end up with WFS requests
* only.
* @type {ol.Extent|undefined}
*/
ngeox.IssueGetFeaturesOptions.prototype.extent;
/**
* A filter to additionnally use with the query. Only used by WFS requests.
* If a filter is defined, then it is used instead of the data source's
* filter rules.
* @type {ol.format.filter.Filter|undefined}
*/
ngeox.IssueGetFeaturesOptions.prototype.filter;
/**
* The maximum number of features to get per request.
* @type {number|undefined}
*/
ngeox.IssueGetFeaturesOptions.prototype.limit;
/**
* The ol3 map object. Used to fill some parameters of the queries, such as
* 'srs' and filter the queryable layers within the data sources.
* @type {ol.Map}
*/
ngeox.IssueGetFeaturesOptions.prototype.map;
/**
* A hash of queryable data sources, which must meet all requirements. The
* querent service requires either the `dataSources` or `queryableDataSources`
* property to be set.
* @type {ngeox.QueryableDataSources|undefined}
*/
ngeox.IssueGetFeaturesOptions.prototype.queryableDataSources;
/**
* A tolerance value in pixels used to create an extent from a coordinate
* to issue WFS requests.
* @type {number|undefined}
*/
ngeox.IssueGetFeaturesOptions.prototype.tolerancePx;
/**
* When set, before making WFS GetFeature requests to fetch features,
* WFS GetFeature requests with `resultType = 'hits'` are made first. If
* the number of records for the request would exceed the limit, then
* no features are returned.
* @type {boolean|undefined}
*/
ngeox.IssueGetFeaturesOptions.prototype.wfsCount;
/**
* @typedef {{
* styleFunction: ol.StyleFunction,
* features: Object.<string, ol.Feature>
* }}
*/
ngeox.MapFeatureOverlayGroup;
/**
* Provides a debounce function used to debounce calls to a user-provided
* function.
* @typedef {function(function(?), number, boolean):function()}
*/
ngeox.miscDebounce;
/**
* Provides a function that returns the most appropriate 2-letter
* language code depending on the list of available languages and the browser
* languages settings.
* @typedef {function(Array.<string>):string}
*/
ngeox.miscGetBrowserLanguage;
/**
* @typedef {{
* handleClassName: (string|undefined),
* draggerClassName: (string|undefined),
* placeholderClassName: (string|undefined)
* }}
*/
ngeox.miscSortableOptions;
/**
* An entry for a tool in a `ngeo.misc.ToolActivateMgr` group.
* @typedef {{
* tool: (ngeo.misc.ToolActivate),
* defaultTool: boolean,
* unlisten: (function(): void)}}
*/
ngeox.miscToolActivateMgrEntry;
/**
* A hash that contains 2 lists of queryable data sources: `wfs` and `wms`.
* The same data source can only be in one of the two lists. The `wfs` list
* has priority, i.e. if the data source supports WFS, it's put in the
* `wfs` list.
*
* @typedef {{
* wfs: (!Array.<!ngeox.datasource.OGC>),
* wms: (!Array.<!ngeox.datasource.OGC>)
* }}
*/
ngeox.QueryableDataSources;
/**
* List of queryable data sources that support WFS.
* @type {Array.<ngeox.datasource.OGC>}
*/
ngeox.QueryableDataSources.prototype.wfs;
/**
* List of queryable data sources that support WMS.
* @type {Array.<ngeox.datasource.OGC>}
*/
ngeox.QueryableDataSources.prototype.wms;
/**
* Hash of features by data source ids.
* @typedef {!Object.<number, !Array.<!ol.Feature>>}
*/
ngeox.QuerentResult;
/**
* The definition of a result item returned by the querent service.
*
* @typedef {{
* features: (Array.<ol.Feature>),
* tooManyFeatures: (boolean|undefined),
* totalFeatureCount: (number|undefined)
* }}
*/
ngeox.QuerentResultItem;
/**
* The list of features that were returned by the query.
* @type {Array.<ol.Feature>}
*/
ngeox.QuerentResultItem.prototype.features;
/**
* The maximum number of features to get with the query.
* @type {number}
*/
ngeox.QuerentResultItem.prototype.limit;
/**
* Set if the query would have returned to many features. When set, no features
* are returned.
* @type {boolean|undefined}
*/
ngeox.QuerentResultItem.prototype.tooManyFeatures;
/**
* The total number of features that would have been returned by the query.
* @type {number|undefined}
*/
ngeox.QuerentResultItem.prototype.totalFeatureCount;
/**
* The options for the contextual menu overlay.
* @typedef {{
* actions: (Array.<ngeox.MenuActionOptions>),
* autoClose: (boolean|undefined)
* }}
*/
ngeox.MenuOptions;
/**
* A list of menu actions.
* @type {Array.<ngeox.MenuActionOptions>}
*/
ngeox.MenuOptions.prototype.actions;
/**
* Whether to automatically close the contextual menu when an action is
* clicked or not. Defaults to `true`.
* @type {boolean|undefined}
*/
ngeox.MenuOptions.prototype.autoClose;
/**
* A title to display as header of the contextual menu.
* @type {string|undefined}
*/
ngeox.MenuOptions.prototype.title;
/**
* The options for an action item for the contextual menu overlay.
* @typedef {{
* cls: (string|undefined),
* label: (string|undefined),
* name: (string)
* }}
*/
ngeox.MenuActionOptions;
/**
* CSS class name(s) to use for the icon of the action item.
* @type {string|undefined}
*/
ngeox.MenuActionOptions.prototype.cls;
/**
* The label to display for the action item. If not defined, the name is used.
* @type {string|undefined}
*/
ngeox.MenuActionOptions.prototype.label;
/**
* A unique name for the menu action, which is used in the event fired when
* the action is clicked.
* @type {string}
*/
ngeox.MenuActionOptions.prototype.name;
/**
* A message to display by the ngeo notification service.
* @typedef {{
* delay: (number|undefined),
* popup: (boolean|undefined),
* msg: (string),
* target: (angular.JQLite|Element|string|undefined),
* type: (string|undefined)
* }}
*/
ngeox.Message;
/**
* The delay in milliseconds the message is shown. Defaults to `7000`.
* @type {number|undefined}
*/
ngeox.Message.prototype.delay;
/**
* Whether the message should be displayed inside a popup window or not.
* Defaults to `false`.
* @type {boolean|undefined}
*/
ngeox.Message.prototype.popup;
/**
* The message text to display
* @type {string}
*/
ngeox.Message.prototype.msg;
/**
* The target element (or selector to get the element) in which to display the
* message. If not defined, then the default target of the notification service
* is used.
* @type {angular.JQLite|Element|string|undefined}
*/
ngeox.Message.prototype.target;
/**
* The type of message. Defaults to `info`.
* @type {string|undefined}
*/
ngeox.Message.prototype.type;
/**
* @typedef {function():!ngeo.message.Popup}
*/
ngeox.PopupFactory;
/**
* The options for a popup created by the popup factory.
* @typedef {{
* autoDestroy: (boolean|undefined),
* cls: (string|undefined),
* content: (*|undefined),
* height: (string|undefined),
* title: (string|undefined),
* url: (string|undefined),
* width: (string|undefined)
* }}
*/
ngeox.PopupOptions;
/**
* Whether the popup should be automatically destroyed when hidden or not.
* Defaults to `false`.
* @type {boolean|undefined}
*/
ngeox.PopupOptions.prototype.autoDestroy;
/**
* Extra class name to add to the popup.
* @type {string|undefined}
*/
ngeox.PopupOptions.prototype.cls;
/**
* The content of the popup. Either the content or URL must be set.
* @type {*|undefined}
*/
ngeox.PopupOptions.prototype.content;
/**
* The height of the popup.
* @type {string|undefined}
*/
ngeox.PopupOptions.prototype.height;
/**
* The title of the popup.
* @type {string|undefined}
*/
ngeox.PopupOptions.prototype.title;
/**
* The URL to use for the iframe to include as content for the popup.
* @type {string|undefined}
*/
ngeox.PopupOptions.prototype.url;
/**
* The width of the popup.
* @type {string|undefined}
*/
ngeox.PopupOptions.prototype.width;
/**
* Results of the query source.
* @typedef {{
* sources: (!Array.<ngeox.QueryResultSource>),
* total: (number),
* pending: (boolean)
* }}
*/
ngeox.QueryResult;
/**
* Results for each query source.
* @type {!Array.<ngeox.QueryResultSource>}
*/
ngeox.QueryResult.prototype.sources;
/**
* The number of results for all sources.
* @type {number}
*/
ngeox.QueryResult.prototype.total;
/**
* If at least one source is pending.
* @type {boolean}
*/
ngeox.QueryResult.prototype.pending;
/**
* Results for a query source.
* @typedef {{
* features: (Array.<ol.Feature>),
* id: (number|string),
* label: (string),
* limit: (number),
* pending: (boolean),
* queried: (boolean),
* tooManyResults: (boolean),
* totalFeatureCount: (number|undefined)
* }}
*/
ngeox.QueryResultSource;
/**
* The matching features for this source.
* @type {Array.<ol.Feature>}
*/
ngeox.QueryResultSource.prototype.features;
/**
* Identifier (can be not unique).
* @type {number|string}
*/
ngeox.QueryResultSource.prototype.id;
/**
* Label.
* @type {string}
*/
ngeox.QueryResultSource.prototype.label;
/**
* The maximum number of features that can be returned for a query with this
* source.
* @type {number}
*/
ngeox.QueryResultSource.prototype.limit;
/**
* Is the request for this source still ongoing?
* @type {boolean}
*/
ngeox.QueryResultSource.prototype.pending;
/**
* Has this source been queried for the last query request?
* @type {boolean}
*/
ngeox.QueryResultSource.prototype.queried;
/**
* If the last query for this source would return more features than the
* configured limit.
* @type {boolean}
*/
ngeox.QueryResultSource.prototype.tooManyResults;
/**
* If `tooManyResults` is `true`, this contains the total number of features.
* @type {number|undefined}
*/
ngeox.QueryResultSource.prototype.totalFeatureCount;
/**
* The options for the query service.
* @typedef {{
* limit: (number|undefined),
* queryCountFirst: (boolean|undefined),
* sourceIdsProperty: (string|undefined),
* tolerance: (number|undefined),
* featureNS: (string|undefined),
* featurePrefix: (string|undefined),
* geometryName: (string|undefined)
* }}
*/
ngeox.QueryOptions;
/**
* The maximum number of records per request the query service should ask.
* Defaults to `50`. Note that sources sharing the same URL are combined
* together in a single request. This limit will still apply to those.
* @type {number|undefined}
*/
ngeox.QueryOptions.prototype.limit;
/**
* For WFS sources, should the number of features first be requested with
* `resultType=hits` before requesting the actual features in an seconds request?
* Defaults to `false`.
* @type {boolean|undefined}
*/
ngeox.QueryOptions.prototype.queryCountFirst;
/**
* Defines the name of the layer property that holds the ids of the sources.
* Use this if you have more than one source bound to a layer. Defaults to
* `querySourceIds`.
* @type {string|undefined}
*/
ngeox.QueryOptions.prototype.sourceIdsProperty;
/**
* When issuing an identify feature request at a click position, either a WMS GetFeatureInfo
* or a WFS GetFeature request will be used. For GetFeature requests a bbox is built
* around the position. This `tolerance` in pixel determines the size of the bbox.
* The default is `3` pixel.
* @type {number|undefined}
*/
ngeox.QueryOptions.prototype.tolerance;
/**
* The feature namespace for WFS GetFeature requests. The default is
* `http://mapserver.gis.umn.edu/mapserver`.
* @type {string|undefined}
*/
ngeox.QueryOptions.prototype.featureNS;
/**
* The feature prefix for WFS GetFeature requests. The default is `feature`.
* @type {string|undefined}
*/
ngeox.QueryOptions.prototype.featurePrefix;
/**
* The name of the geometry property for WFS GetFeature requests. The default is `geom`.
* @type {string|undefined}
*/
ngeox.QueryOptions.prototype.geometryName;
/**
* Options to configure the scale selector
* @typedef {{
* dropup: (boolean|undefined)
* }}
*/
ngeox.ScaleselectorOptions;
/**
* True to get a drop menu that opens imself to the top, instead of the bottom.
* @type {boolean|undefined}
*/
ngeox.ScaleselectorOptions.prototype.dropup;
/**
* @typedef {{
* handleClassName: (string|undefined),
* draggerClassName: (string|undefined)
* }}
*/
ngeox.SortableOptions;
/**
* A WFS type. To be used with {@link ngeox.WfsPermalinkOptions}.
* @typedef {{
* featureType: (string),
* label: (string|undefined),
* featureNS: (string|undefined),
* featurePrefix: (string|undefined)
* }}
*/
ngeox.WfsType;
/**
* The feature type name. Required.
* @type {string}
*/
ngeox.WfsType.prototype.featureType;
/**
* The field of a feature used as label.
* @type {string|undefined}
*/
ngeox.WfsType.prototype.label;
/**
* The namespace URI used for features. If not given, the default namespace set
* in {@link ngeox.WfsPermalinkOptions} will be used.
* @type {string|undefined}
*/
ngeox.WfsType.prototype.featureNS;
/**
* The prefix for the feature namespace. If not given, the default prefix set
* in {@link ngeox.WfsPermalinkOptions} will be used.
* @type {string|undefined}
*/
ngeox.WfsType.prototype.featurePrefix;
/**
* The options for the WFS query service (permalink).
* @typedef {{
* url: (string),
* wfsTypes: (!Array.<ngeox.WfsType>),
* pointRecenterZoom: (number|undefined),
* defaultFeatureNS: (string),
* defaultFeaturePrefix: (string),
* maxFeatures: (number|undefined)
* }}
*/
ngeox.WfsPermalinkOptions;
/**
* URL to the WFS server.
* @type {string}
*/
ngeox.WfsPermalinkOptions.prototype.url;
/**
* The queryable WFS types.
* @type {!Array.<ngeox.WfsType>}
*/
ngeox.WfsPermalinkOptions.prototype.wfsTypes;
/**
* Zoom level to use when result is a single point feature. If not set the map
* is not zoomed to a specific zoom level.
* @type {number|undefined}
*/
ngeox.WfsPermalinkOptions.prototype.pointRecenterZoom;
/**
* The default namespace URI used for features. This will be used if no custom
* namespace is given for a WFS type.
* @type {string}
*/
ngeox.WfsType.prototype.defaultFeatureNS;
/**
* The default prefix for the feature namespace. This will be used if no custom
* prefix is given for a WFS type.
* @type {string}
*/
ngeox.WfsType.prototype.defaultFeaturePrefix;
/**
* The maximum number of records per request the query service should ask.
* Defaults to `50`.
* @type {number|undefined}
*/
ngeox.WfsPermalinkOptions.prototype.maxFeatures;
/**
* Namespace.
* @type {Object}
*/
ngeox.datasource;
/**
* @typedef {!ol.Collection.<!ngeo.datasource.DataSource>}
*/
ngeox.datasource.DataSources;
/**
* The options required to create a `ngeox.datasource.DataSource`.
* @record
* @struct
*/
ngeox.datasource.DataSourceOptions = function() {};
/**
* The attributes of the data source.
* @type {Array.<ngeox.Attribute>|undefined}
*/
ngeox.datasource.DataSourceOptions.prototype.attributes;
/**
* (Required) The data source id.
* @type {number}
*/
ngeox.datasource.DataSourceOptions.prototype.id;
/**
* The name of an attribute among the attributes of the data source.
* The value of that attribute, in records, can be used to identify
* each record individually.
* @type {string|undefined}
*/
ngeox.datasource.DataSourceOptions.prototype.identifierAttribute;
/**
* A data source is considered 'in range' when it is synchronized to
* a map view and the resolution of that view is within the range of
* the `maxResolution` and `minResolution`. These 2 properties are
* required for the `inRange` property to be dynamic, otherwise its
* value is always `true` by default.
*
* The synchronization is made in the `ngeo.datasource.syncDataSourcesMap`
* service.
*
* @type {boolean|undefined}
*/
ngeox.datasource.DataSourceOptions.prototype.inRange;
/**
* Maximum resolution where the data source can be displayed or queried.
* @type {number|undefined}
*/
ngeox.datasource.DataSourceOptions.prototype.maxResolution;
/**
* Minimum resolution where the data source can be displayed or queried.
* @type {number|undefined}
*/
ngeox.datasource.DataSourceOptions.prototype.minResolution;
/**
* (Required) A human-readable name for the data source.
* @type {string}
*/
ngeox.datasource.DataSourceOptions.prototype.name;
/**
* Whether the data source is visible or not, i.e. whether its is ON or OFF.
* Defaults to `false`.
* @type {boolean|undefined}
*/
ngeox.datasource.DataSourceOptions.prototype.visible;
/**
* The options required to create a `ngeox.datasource.File`.
* @record
* @struct
* @extends ngeox.datasource.DataSourceOptions
*/
ngeox.datasource.FileOptions = function() {};
/**
* Collection of `ol.Feature` objects.
* @type {ol.Collection.<!ol.Feature>|undefined}
*/
ngeox.datasource.FileOptions.prototype.features;