For the complete documentation index, see llms.txt. This page is also available as Markdown.

New-UDMap

Synopsis

Interactive maps for displaying markers, lines, and polygons.

Syntax

New-UDMap [[-Id] <String>] [[-Longitude] <Single>] [[-Latitude] <Single>] [[-Zoom] <Int32>] [[-Height] <String>] [[-Width] <String>] [-Content] <Endpoint> [[-ZoomControlPosition] <String>] [[-ScaleControlPosition] <String>] [-Animate] [[-MaxZoom] <Int32>] [<CommonParameters>]

Description

Interactive maps for displaying markers, lines, and polygons.

Parameters

-Id

The ID of the component. It defaults to a random GUID.

Required?                    false
Position?                    1
Default value                ([Guid]::NewGuid())
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false

-Longitude

The default longitude of the map.

-Latitude

The default latitude of the map.

-Zoom

The default zoom level of the map.

-Height

The height of the map.

-Width

The width of the map.

-Content

The script block to call to get the map data.

-ZoomControlPosition

The zoom control position. Valid values are topright, topleft, bottomright, bottomleft.

-ScaleControlPosition

The scale control position. Valid values are topright, topleft, bottomright, bottomleft, hide.

-Animate

Animate the map when it is loaded.

-MaxZoom

The maximum zoom level of the map.

Common parameters

This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters.

Outputs

Examples

Example 1: Basic map

This basic map defines a simple base layer using the wmflabs.org tile server. You can use your own custom tile server by specifying a URL. The map is position over Hailey, Idaho.

Example 2: Layer Control

You can enable the layer control by using the New-UDMapLayerControl cmdlet. This map defines several layers with components that you can toggle on and off. You can only have one base layer selected as a time. Map overlay layers can toggle on and off.

Example 3: Markers with Popup

You can add markers to the map by using the New-UDMapMarker cmdlet.

Example 4: Vectors

You can add vectors to the map by using the New-UDMapVectorLayer cmdlet.

Last updated

Was this helpful?