-
Notifications
You must be signed in to change notification settings - Fork 9
topics
andy.rothwell edited this page Aug 28, 2018
·
4 revisions
Defines Topics to be rendered in the topic panel. This takes an array of objects.
param | definition |
---|---|
key | |
icon | |
label | |
dataSources | |
identifyFeature | |
parcels | |
components |
Example:
topics: [
{
// a unique key for the topic
key: 'property-assessments',
// the icon displayed in the topic header. this can be any Font Awesome
// class, minus the `fa-` prefix. see http://fontawesome.io/
icon: 'map-marker',
// the full name of the topic
label: 'Property Assessments',
// keys for all of the data sources required for this topic (see
dataSources option).
dataSources: ['opa'],
// the key for the basemap to show with this topic. basemaps are
// usually defined in the base config file.
basemap: 'pwd',
// the type of map feature used to show the location of the address
// e.g. address-marker, pwd-parcel, dor-parcel
identifyFeature: 'address-marker',
// the parcel (aka property boundary) layer to use with this topic
parcels: 'pwd',
// a list of components to display. see below for details.
components: []
}
]