cgxp.plugins.ThemeFinder

ptype
cgxp_themefinder
class cgxp.plugins.ThemeFinder(config)

Example Use

Sample code showing how to add a ThemeFinder plugin to a gxp.Viewer can be see in the LayerTree.

Config Options

Configuration properties.

findFolder

Boolean Find for layer group (tree folder), default to true.

findGroup

Boolean Find for first level layer groups (block), default to true.

findLayer

Boolean Find for layer (tree node), default to true.

findTheme

Boolean Find for themes, default to true.

ignoreThemes

Array List of theme names that shouldn’t be found.

layerTreeId

String Id of the layertree tool.

template

Ext.XTemplate The template used to display the result, default to:

new Ext.XTemplate(
    '<tpl for="."><div class="x-combo-list-item themefinder-{type}">',
    '{displayName}',
    '</div></tpl>'
)
Available attributes:
  • {name} String
  • {displayName} String
  • {groupName} String Group display name
  • {level} Number 0 for theme, 1 for group, ... add 1 on each step, and 1.5 for case insensitive
  • {type} String theme|group|folder|layer
themes

Object List of internal and external themes and layers.

Table Of Contents

Previous topic

cgxp.plugins.StreetView

Next topic

cgxp.plugins.ThemeSelector

This Page

Fork me on GitHub