A FeatureCollectionsFormatter generates an HTML fragment containing all features of one or more feature collections. The formatting of features can be customized on a per-feature-collection basis. During formatting, the template for the features of a particular feature collection is taken from the ria.template.TemplateRepository passed into the constructor. The template is expected to be registered in the template repository with the same name as the feature collection it applies to. A ria.template.DefaultTemplate will be used if no matching template can be found.
Method Attributes | Method Name and Description |
---|---|
format(names, featureCollections)
Generates an HTML fragment containing the formatted features of all
given feature collections.
|
<h2>
element at the beginning
of each corresponding list element. The names of the feature collections
are given in the names
parameter. Each name corresponds to
the feature collection at the same array index in the
featureCollections
parameter. The features of each feature
collection are rendered as elements of a nested unordered list.