Marker Symbol Layer
A struct that implements picture marker symbol layers. A PictureMarkerSymbolLayer represents a symbol layer used to place a picture marker on a point geometry.
This symbol layer, in a MultilayerPointSymbol, places a picture marker at the location of the point feature. The class supports changing dimensions of the marker, specifying the image (or URI linking to the image) to use as the marker, as well as the general marker options provided by the MarkerSymbolLayer base class.
This symbol layer is similar to the Web Scene specification's IconSymbol3DLayer, when the IconSymbol3DLayer references an image. PictureMarkerSymbolLayer is also similar to the Web Map specification's PictureMarkerSymbol. As a symbol layer, PictureMarkerSymbolLayer can be combined with other symbol layers in a MultilayerSymbol, whereas PictureMarkerSymbol cannot.
Creates a picture marker symbol layer from a URI. This function sets 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. After creating, call PictureMarkerSymbolLayer.load() to load the image from the URI.
The tint color of a picture marker symbol layer. The tint color is applied to the entire image by multiplying each RGB color channel in the image by the corresponding color channel of the tint color. The default tint color is white with 100% opacity, i.e. RGBA(255, 255, 255, 255), which leaves the image with its native colors. A white tint color with opacity less than 100% tints the image white, with the reduced opacity respected.
The URI of the image to be loaded in a picture marker symbol layer. Setting the URI changes the URI property of Loadable, from which PictureMarkerSymbolLayer inherits. The URI is an empty string by default. The URI cannot be set after attempting to load. To load the image at the specified URI, call PictureMarkerSymbolLayer.load().
The anchor object of a marker symbol layer. The SymbolAnchor determines how the MarkerSymbolLayer is anchored. SymbolAnchor specifies the marker's anchor point and anchor placement mode. The default symbol anchor is at XYZ(0, 0, 0) and uses 'relative' mode. See the SymbolAnchor documentation for a detailed description of the object.
The marker symbol layer's x-offset. The input value can be any real number. The default value is 0. This property affects markers in both Maps and Scenes. The x-offset is a delta applied to the marker in the direction corresponding to the given value. For example, a positive x-offset moves the marker in the positive-x direction.
The marker symbol layer's y-offset. The input value can be any real number. The default value is 0. This property affects markers in both Maps and Scenes. The y-offset is a delta applied to the marker in the direction corresponding to the given value. For example, a positive y-offset moves the marker in the positive-y direction.