Table of Contents

Enum MarkerShape

Namespace
LansMap.Core.Markers

Options for what shape each marker is drawn as. The built-in procedural marker shapes, drawn as signed distance fields in the marker shader so they stay crisp at any size.

public enum MarkerShape

Fields

Circle = 0

A filled circle. The default shape.

Diamond = 2

A filled square rotated 45 degrees.

Pin = 5

A teardrop map pin: a round head with a tapering tail.

Ring = 4

A circle outline with a hollow center.

Square = 1

A filled axis-aligned square.

Triangle = 3

A filled isosceles triangle that tapers to a point on one side.

Remarks

These values are part of the GPU instance layout: the shader receives them packed as mode | shape << 8, so the numbers are wire format and must not be renumbered. Values of 16 and above are not listed here; they are custom sprite shapes handed back by RegisterCustomShape (one shape) or RegisterCustomShapes (a whole set, packing the shape atlas once) in the Runtime assembly, both of which return this type directly. Values 6 to 15 are unassigned and reserved for future built-ins.

Every shape is drawn centered on its coordinate. The quad spans -1 to +1 about the marker position in both axes, so there is no per-shape anchor offset: a Pin is centered on the position like any other shape rather than standing on it. Offset the coordinate yourself if you need tip-anchored behaviour.