RenderSymbol2D

fun RenderSymbol2D(id: String, name: String, description: String, symbolCode: String, controlPoints: String, pixelWidth: int, pixelHeight: int, bbox: String, modifiers: JsMap, attributes: JsMap, format: int): String

Renders all multi-point symbols, creating KML or JSON for the user to parse and render as they like. This function requires the bounding box to help calculate the new locations.

Return

A JSON (1) or KML (0) string representation of the graphic.

Parameters

id

A unique identifier used to identify the symbol by Google map. The id will be the folder name that contains the graphic.

name

a string used to display to the user as the name of the graphic being created.

description

a brief description about the graphic being made and what it represents.

symbolCode

A 20-30 digit symbolID corresponding to one of the graphics in the MIL-STD-2525D

controlPoints

The vertices of the graphics that make up the graphic. Passed in the format of a string, using decimal degrees separating lat and lon by a comma, separating coordinates by a space. The following format shall be used "x1,y1 xn,yn..."

pixelWidth

pixel dimensions of the viewable map area

pixelHeight

pixel dimensions of the viewable map area

bbox

The viewable area of the map. Passed in the format of a string "lowerLeftX,lowerLeftY,upperRightX,upperRightY." example: "-50.4,23.6,-42.2,24.2"

modifiers

{@link Map}, keyed using constants from Modifiers. Pass in comma delimited String for modifiers with multiple values like AM, AN & X

attributes

{@link Map}, keyed using constants from MilStdAttributes.

format

An enumeration: 2 for GeoJSON.