Constructor PictureMarkerSymbolLayer
PictureMarkerSymbolLayer(RuntimeImage)
Initializes a new instance of the PictureMarkerSymbolLayer class from a RuntimeImage.
Declaration
public PictureMarkerSymbolLayer(RuntimeImage image)
Parameters
Type | Name | Description |
---|---|---|
RuntimeImage | image | A loaded RuntimeImage. |
Remarks
The PictureMarkerSymbolLayer is set up with following default properties: Anchor at (0, 0), offset of (0, 0), size of 13.33 DIPs (10 points), an heading of 0 degrees, and an empty URI. If the image is valid, the function sets the image on the symbol layer, and sets the load status of the PictureMarkerSymbolLayer to Loaded.
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
InvalidOperationException |
|
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.5 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.5 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.5 - 100.15 |
Xamarin.iOS | 100.5 - 100.15 |
UWP | 100.5 - 100.15 |
PictureMarkerSymbolLayer(Uri)
Initializes a new instance of the PictureMarkerSymbolLayer class from a RuntimeImage.
Declaration
public PictureMarkerSymbolLayer(Uri uri)
Parameters
Type | Name | Description |
---|---|---|
Uri | uri | The URI location of the image to use in the symbol layer. |
Remarks
This PictureMarkerSymbolLayer is set up the following default properties: Anchor at
(0, 0), offset of (0, 0), size of 13.33 DIPs (10 points), an angle of 0 degrees, width and height
of (0, 0), and a null
image. The function sets the URI to the string provided.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.5 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.5 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.5 - 100.15 |
Xamarin.iOS | 100.5 - 100.15 |
UWP | 100.5 - 100.14 |