# New-MapPlot

Creates a new MapPlot object with specified latitude, longitude, and other optional parameters.

Project

PSWriteHTML

Generate HTML reports, dashboards, and emails from PowerShell without writing HTML, CSS, or JavaScript.

[View on GitHub](https://github.com/EvotecIT/PSWriteHTML) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteHTML/releases/tag/v1.41.0) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteHTML/1.40.0)

Stars **1,025**

Forks **114**

Open issues 

PowerShell Gallery downloads **7,576,901**

Release **v1.45.0**

Language: PowerShell Updated: 2026-11-19

Command 

**Module**

`PSWriteHTML`

Creates a new MapPlot object with specified latitude, longitude, and other optional parameters.

## Syntax

```
New-MapPlot
[[-Href] <String>]
[-Latitude] <Double>
[-Longitude] <Double>
[-Plot] <String>
[[-TooltipContent] <ScriptBlock>]
[-Value] <String>
[<CommonParameters>]
```

[#](#method-new-mapplot-string-double-double-string-scriptblock-string)

Parameter set: `All Parameter Sets`

## Description

This function creates a new MapPlot object with the provided latitude, longitude, and other optional parameters like href, value, and tooltip content.

## Examples

### Example 1

```powershell
New-MapPlot -Plot "Sample Plot" -Latitude 40.7128 -Longitude -74.0060 -Href "https://example.com" -Value "Sample Value" -TooltipContent { "This is a sample tooltip." }
```

Creates a new MapPlot object named "Sample Plot" with latitude 40.7128, longitude -74.0060, a hyperlink reference to "https://example.com", a value of "Sample Value", and a tooltip content of "This is a sample tooltip."

## Parameters

**-Href String optionalposition: 3**

Specifies the hyperlink reference for the plot.

**-Latitude Double requiredposition: 1**

Specifies the latitude coordinate for the plot.

**-Longitude Double requiredposition: 2**

Specifies the longitude coordinate for the plot.

**-Plot String requiredposition: 0**

Specifies the name of the plot.

**-TooltipContent ScriptBlock optionalposition: 5aliases: Tooltip**

Specifies the content of the tooltip associated with the plot.

**-Value String requiredposition: 4**

Specifies the value associated with the plot.

## Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see [about_CommonParameters](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:EE03601FC8F412452A360304BCB1C0DA5E876CE0853856E71487058CD9AB3505 -->
