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 |
|
System.InvalidOperationException |
|
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.5 - 200.5 |
.NET | 100.13 - 200.5 |
.NET Windows | 100.13 - 200.5 |
.NET Android | 200.0 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.5 - 200.5 |
Xamarin.Android | 100.5 - 100.15 |
Xamarin.iOS | 100.5 - 100.15 |
UWP | 100.5 - 200.5 |
PictureMarkerSymbolLayer(Uri)
Initializes a new instance of the PictureMarkerSymbolLayer class from a RuntimeImage.
Declaration
public PictureMarkerSymbolLayer(Uri uri)
Parameters
Type | Name | Description |
---|---|---|
System.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 - 200.5 |
.NET | 100.13 - 200.5 |
.NET Windows | 100.13 - 200.5 |
.NET Android | 200.2 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.5 - 200.5 |
Xamarin.Android | 100.5 - 100.14 |
Xamarin.iOS | 100.5 - 100.15 |
UWP | 100.5 - 200.5 |