@vcmap/underscore-balloon
v1.0.0
Published
Adds featureInfo balloon view which uses underscorejs template function
Downloads
71
Readme
@vcmap/underscore-balloon
Part of the VC Map Project
This plugin allows to usage of VC Map 4 balloon templates.
olcs_
attributes are filtered out if not passed asattributeKeys
in the plugin options. See FEATURE_INFO in the @vcmap/ui docs for more information.
Configuration
Besides the FeatureInfoViewOptions
to define options like window size, it offers the following config options:
| Property | Type | Default | Description |
| --------------- | --------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| titleTemplate | string \| string[] \| undefined
| undefined | A underscore template that is rendered in the header of the balloon. If not provided the plugin tries to pick a DOM element with the class "balloon-title" from the contentTemplate and puts in the title slot. |
| contentTemplate | string\| string[]
| A underscore template that is rendered in the content area of the balloon. Paste here VC Map 4 templates for migration. |