Modules/UniversalDashboard.Map/Scripts/featuregroup.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
function New-UDMapFeatureGroup 
{
    param(
        [Parameter()]
        [string]$Id = (New-Guid).ToString(),
        [Parameter()]
        [Hashtable]$Popup,
        [Parameter(Mandatory)]
        [ScriptBlock]$Content
    )

    End {
        @{
            type = 'map-feature-group'
            id = $id 
            isPlugin = $true
            assetId = $AssetId
            content = & $Content 
            popup = $Popup
        }
    }
}