abusesa: Add colormap parameter
This commit is contained in:
parent
d6c7652060
commit
6ddcf27601
2 changed files with 11 additions and 0 deletions
|
@ -11,6 +11,12 @@
|
||||||
# $config:
|
# $config:
|
||||||
# Source URL of custom config file.
|
# Source URL of custom config file.
|
||||||
#
|
#
|
||||||
|
# $mapurl:
|
||||||
|
# Alternate base URL of map tiles.
|
||||||
|
#
|
||||||
|
# $colormap:
|
||||||
|
# URL of custom color map.
|
||||||
|
#
|
||||||
# $webhosts:
|
# $webhosts:
|
||||||
# List of live virtual hosts.
|
# List of live virtual hosts.
|
||||||
#
|
#
|
||||||
|
@ -18,6 +24,7 @@ class abusesa::live(
|
||||||
$authurl='/collab/?action=authcredentials',
|
$authurl='/collab/?action=authcredentials',
|
||||||
$boshurl='/bosh/',
|
$boshurl='/bosh/',
|
||||||
$mapurl=undef,
|
$mapurl=undef,
|
||||||
|
$colormap=undef,
|
||||||
$config=undef,
|
$config=undef,
|
||||||
$webhosts=undef,
|
$webhosts=undef,
|
||||||
) {
|
) {
|
||||||
|
|
|
@ -6,6 +6,10 @@ config = {
|
||||||
'boshUrl' => @boshurl,
|
'boshUrl' => @boshurl,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if @colormap
|
||||||
|
config['colormap'] = @colormap
|
||||||
|
end
|
||||||
|
|
||||||
if @mapurl
|
if @mapurl
|
||||||
config['viewPlugins'] = [{
|
config['viewPlugins'] = [{
|
||||||
'id' => 'map',
|
'id' => 'map',
|
||||||
|
|
Loading…
Add table
Reference in a new issue