Skip to main content

Type Alias: RNMarkerSvg

type RNMarkerSvg = {
height: number;
svgString: string;
width: number;
};

Marker SVG definition.

Properties​

PropertyTypeDescription
heightnumberIcon height in logical units. iOS: points (pt) Android: density-independent pixels (dp) Converted internally to physical pixels.
svgStringstringRaw SVG content, rendered by lunasvg — https://github.com/sammycage/lunasvg The SVG is fitted into width x height and centered, it keeps its aspect ratio. <image> may reference data URIs and http(s) URLs. font-family finds the system fonts and the fonts bundled with the app by their file name, e.g. Roboto-Bold, or their family, e.g. Roboto. See SVG markers in the docs.
widthnumberIcon width in logical units. iOS: points (pt) Android: density-independent pixels (dp) Converted internally to physical pixels.