Companion

object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun getRectangleCorners(endpoints: String, width: Double): String

Converts a rectangle with two points and a width to a polygon that contains the four corners of the rectangle

Link copied to clipboard

Given a symbol code meant for a single point symbol, returns the symbol as a byte array.

Link copied to clipboard

Given a symbol code meant for a single point symbol, returns the anchor point at which to display that image based off the image returned from the URL of the SinglePointServer.

Link copied to clipboard
fun RenderMultiPointAsMilStdSymbol(id: String, name: String, description: String, symbolCode: String, controlPoints: String, altitudeMode: String, scale: double, bbox: String, modifiers: JsMap, attributes: JsMap): MilStdSymbol

Renders all MilStd 2525 multi-point symbols, creating MilStdSymbol that contains the information needed to draw the symbol on the map. DOES NOT support RADARC, CAKE, TRACK etc... ArrayList milStdSymbol.getSymbolShapesindex.getPolylines() and ShapeInfo = milStdSymbol.getModifierShapesindex.

Link copied to clipboard
fun RenderSymbol(id: String, name: String, description: String, symbolCode: String, controlPoints: String, altitudeMode: String, scale: double, bbox: String, modifiers: JsMap, attributes: JsMap, format: int): String

Renders all multi-point symbols, creating KML that can be used to draw it on a Google map. Multipoint symbols cannot be draw the same at different scales. For instance, graphics with arrow heads will need to redraw arrowheads when you zoom in on it. Similarly, graphics like a Forward Line of Troops drawn with half circles can improve performance if clipped when the parts of the graphic that aren't on the screen. To help readjust graphics and increase performance, this function requires the scale and bounding box to help calculate the new locations.

Link copied to clipboard
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.

Link copied to clipboard
fun setLoggingLevel(level: int)


Set minimum level at which an item can be logged. In descending order: OFF = Integer.MAX_VALUE Severe = 1000 Warning = 900 Info = 800 Config = 700 Fine = 500 Finer = 400 Finest = 300 All = Integer.MIN_VALUE Use like WebRenderer.setLoggingLevel(Level.INFO); or Use like WebRenderer.setLoggingLevel(800);

Link copied to clipboard

Single Point Tactical Graphics are rendered from font files. The font size you specify here determines how big the symbols will be rendered. This should be set once at startup.

Link copied to clipboard

Units are rendered from font files. The font size you specify here determines how big the symbols will be rendered. This should be set once at startup.

Link copied to clipboard

Returns true if we recommend clipping a particular symbol. Would return false for and Ambush but would return true for a Line of Contact due to the decoration on the line.