Constructors

Methods

  • A starting point for calculating map scale. The User may prefer a different calculation depending on how their maps works.

    Parameters

    • mapPixelWidth: number

      Width of your map in pixels

    • eastLon: number

      East Longitude of your map

    • westLon: number

      West Longitude of your map

    • dpi: number = -1

      Dots Per Inch of your device. If not included, will use default renderer value.

    Returns number

    Map scale value to use in the RenderSymbol function armyc2.c5isr.web.render.WebRenderer#RenderSymbol(String, String, String, String, String, String, double, String, Map, Map, int)

  • Searches an SVG string and increments all stroke-width values by the increaseBy value.

    Parameters

    • svgString: string

      The input SVG content as a string.

    • increaseBy: number

      the number to add to the current stroke value

    Returns string

    A new SVG string with updated stroke-width values.

  • For Renderer Use Only Changes colors for single point control measures

    Parameters

    • symbolID: string
    • svg: string
    • strokeColor: Color

      hex value like "#FF0000";

    • fillColor: Color

      hex value like "#FF0000";

    • isOutline: boolean = false

      default false; true if this represents a thicker outline to render first beneath the normal symbol (the function must be called twice)

    Returns string

    SVG String