Options
All
  • Public
  • Public/Protected
  • All
Menu

webmapsjs

Index

Modules

Classes

Interfaces

Variables

Functions

Variables

_zoomResLookup

_zoomResLookup: Array<number> = [156543.03392804097, //078271.51696402048, //139135.75848201024, //219567.87924100512, //39783.93962050256, //44891.96981025128, //52445.98490512564, //61222.99245256282, //7611.49622628141, //8305.748113140705, //9152.8740565703525, //1076.43702828517625, //1138.21851414258813, //1219.109257071294063, //139.554628535647032, //144.777314267823516, //152.388657133911758, //161.194328566955879, //170.5971642834779395, //180.29858214173896974, //190.14929107086948487, //200.07464553543474244, //210.03732276771737122, //220.01866138385868561, //230.009330691929342804, //240.004665345964671402, //250.002332672982335701, //260.0011663364911678506, //270.0005831682455839253 //28]

dragged

dragged: boolean = false

itsConfig

itsConfig: Array<object | object | object | object | object> = [{name: 'Camera',itsType: 'cctv',minZoom: 11,itsIconConfig: {prop: 'owner',defaultName: 'WisDOT',defaultIcon: 'cctv.png',iconArray: [['City of Madison', 'Madison', 'cctv-mad.png']]}},{name: 'Message Signs',itsType: 'DMS',minZoom: 11,itsIconConfig: {prop: 'dmsType',defaultName: 'DMS',defaultIcon: 'dms.png',iconArray: [['pcms', 'PCMS', 'pcms.png']]}},{name: 'ATR', itsType: 'atr', minZoom: 8, itsIcon: 'atr.png', visible: false},{name: 'Lighting', itsType: 'light', minZoom: 16, itsIcon: 'streetlight.png', visible: false, onDemand: true},{name: 'Bluetooth', itsType: 'blue', minZoom: 10, itsIcon: 'bluetooth.png', visible: false},{name: 'Cabinets', itsType: 'cabinet', minZoom: 10, itsIcon: 'cabinet.png', visible: false},{name: 'Hut', itsType: 'hut', minZoom: 10, itsIcon: 'hut.png', visible: false},{name: 'Vault', itsType: 'vault', minZoom: 13, itsIcon: 'vault.png', visible: false},{name: 'Advisory Radio', itsType: 'har', minZoom: 10, itsIcon: 'har.png', visible: false},{name: 'Loop Detectors',itsType: 'loop',legendCollapse: true,minZoom: 14,visible: false,itsIconConfig: {prop: 'dtctrType',defaultName: 'Other',defaultIcon: 'loopdetectorother.png',iconArray: [['detector', 'Detector', 'loopdetector.png'],['long', 'Long', 'loopdetectorlong.png'],['zone', 'Zone', 'loopdetectorzone.png']]},onDemand: true},{name: 'Microwave', itsType: 'microwave', minZoom: 14, itsIcon: 'microwave.png', visible: false},{name: 'Pull Box', itsType: 'pull', minZoom: 14, itsIcon: 'pullbox.png', visible: false, onDemand: true},{name: 'RWIS', itsType: 'rwis', minZoom: 7, itsIcon: 'rwis.png', visible: false},{name: 'Ramp Gates', itsType: 'gate', minZoom: 10, itsIcon: 'rampgate.png', visible: false},{name: 'Ramp Meter', itsType: 'meter', minZoom: 10, itsIcon: 'rampmeter.png', visible: false},{name: 'Signal', itsType: 'signal', minZoom: 13, itsIcon: 'signal.png', visible: false, onDemand: true},{name: 'Tower', itsType: 'tower', minZoom: 10, itsIcon: 'tower.png', visible: false},{name: 'Trench',itsType: 'trench',onDemand: true,visible: false,onDemandDelay: 500,minZoom: 15,legendCollapse: true,itsLineConfig: {prop: 'owner',//defaultName: 'Other',//defaultWidth: 7,defaultColor: colors.hexAlphaToRgbOrRgba('#747474', 0.8),lineArray: [['WisDOT', 'WisDOT', colors.hexAlphaToRgbOrRgba('#FF032F', 0.7)],['WIN', 'WIN', colors.hexAlphaToRgbOrRgba('#FFC632', 0.7)],['USXchange', 'USXchange', colors.hexAlphaToRgbOrRgba('#2DFF46', 0.7)],['AT&T', 'AT&T', colors.hexAlphaToRgbOrRgba('#ff2be5', 0.7)],['Touch America', 'Touch America', colors.hexAlphaToRgbOrRgba('#52f3ff', 0.7)],['Qwest', 'Qwest', colors.hexAlphaToRgbOrRgba('#9278ff', 0.7)],['McLeodUSA', 'McLeodUSA', colors.hexAlphaToRgbOrRgba('#2926FF', 0.7)],['CINC', 'CINC', colors.hexAlphaToRgbOrRgba('#CB00FF', 0.7)],['City of Madison', 'Madison', colors.hexAlphaToRgbOrRgba('#000380', 0.7)]]}}]

lastVal

lastVal: any

mapMove

mapMove: MapMoveCls = new MapMoveCls()

The single map move object catch is that it is common to multimap pages

type

{MapMoveCls}

mapPopup

mapPopup: MapPopupCls = new MapPopupCls() as MapPopupCls

The single popup object catch is that it is common to multimap pages

type

{MapPopupCls}

mouseDown

mouseDown: boolean = false

mouseIn

mouseIn: boolean = false

nm

nm: any = provide('util')

offsetMinutes

offsetMinutes: number = (new Date()).getTimezoneOffset()

The GMT offset time in minutes

type

{number}

proj3070

proj3070: Projection = new ol.proj.Projection({code: 'EPSG:3070'})

proj3857

proj3857: Projection = new ol.proj.Projection({code: 'EPSG:3857'})

proj4326

proj4326: Projection = new ol.proj.Projection({code: 'EPSG:4326'})

timeout

timeout: any = null

Functions

Private _colorArrayToRgba

  • _colorArrayToRgba(colorArray: any, opacity: any): string
  • Parameters

    • colorArray: any

      input color array

    • opacity: any

      the opacity 0 to 1

    Returns string

    rgba string

Private _hex

  • _hex(x: any): string
  • helper function to convert to hex

    Parameters

    • x: any

      the number to convert to hex

    Returns string

    number as hex

calculateExtent

  • calculateExtent(layers: Vector[] | LayerBaseVector[]): ol.Extent | Array<number> | ol.Extent | number[]

checkStyleNumber

  • checkStyleNumber(itsIcon: any, itsLineStyle: any, itsIconConfig: any, itsLineConfig: any): void

dateToYyyyMmDdHh000

  • dateToYyyyMmDdHh000(dte: Date): string
  • Given a date return a string in the format YYYYmmdd_hh0000

    Parameters

    • dte: Date

      the input date

    Returns string

    the formatted date string

dateToYyyyMmDdHhMmSs

  • dateToYyyyMmDdHhMmSs(dte: Date): string
  • Given a date return a string in the format YYYY-mm-dd hh:MM:SS

    Parameters

    • dte: Date

      to convert

    Returns string

    the formatted date string

defineLegend

  • defineLegend(itsIcon: any, itsLineStyle: any, itsIconConfig: any, itsLineConfig: any): string
  • Parameters

    • itsIcon: any
    • itsLineStyle: any
    • itsIconConfig: any
    • itsLineConfig: any

    Returns string

    html to be added to the legend

defineStyle

  • defineStyle(itsIcon: any, itsLineStyle: any, itsIconConfig: any, itsLineConfig: any): Style | Array<Style> | ol.StyleFunction
  • Parameters

    • itsIcon: any
    • itsLineStyle: any
    • itsIconConfig: any
    • itsLineConfig: any

    Returns Style | Array<Style> | ol.StyleFunction

    undefined, style, or style function

definedAndNotNull

  • definedAndNotNull(input: any): boolean
  • check if the input is defined and not null

    Parameters

    • input: any

      input pointer

    Returns boolean

    true defined and not null

fitToMap

  • fitToMap(layers: Vector[] | LayerBaseVector[], mp: Map, zoomOut?: number): void
  • given one or an array of layers, fit to the map

    Parameters

    • layers: Vector[] | LayerBaseVector[]

      array of layers or single

    • mp: Map

      the map to fit

    • Optional zoomOut: number

    Returns void

getUrlParams

  • getUrlParams(): object

hexAlphaToRgbOrRgba

  • hexAlphaToRgbOrRgba(hexString: any, alphaVal: any): string
  • Convert hex string to RGB or RGBA string

    Parameters

    • hexString: any

      hex color string

    • alphaVal: any

    Returns string

    • rgb or rgba color

htmlEscape

  • htmlEscape(str: any): string

isNumber

  • isNumber(checkVal: any): boolean

keyValPairs

  • iterate over the key value pairs of an object

    Parameters

    • obj: any

      the input object

    Returns keyVals[]

    • array of key value pairs

leadingPad

  • leadingPad(inNum: any): any

makeBlueGreenRedGradient

  • makeBlueGreenRedGradient(minVal: any, maxVal: any, flipColors: any): (Anonymous function)
  • Make a blue green red gradient

    Parameters

    • minVal: any

      minimum value

    • maxVal: any

      maximum value

    • flipColors: any

      if the colors should be flipped

    Returns (Anonymous function)

    color lookup function

makeBlueGreenRedGradientZScore

  • makeBlueGreenRedGradientZScore(median: any, stdDev: any, flipColors: any): (Anonymous function)
  • Create a function that will return colors based on a gradient

    Parameters

    • median: any

      median value

    • stdDev: any

      standard deviation

    • flipColors: any

      if the colors should be flipped

    Returns (Anonymous function)

    color lookup function

makeFeatureServiceLegendAndSymbol

  • makeFeatureServiceLegendAndSymbol(esriResponse: EsriResponse): object

makeGuid

  • makeGuid(): string
  • guids are used to uniquely identify groups and features

    Returns string

    a new guid

makeMapServiceLegend

  • makeMapServiceLegend(esriResponse: any): string

mapServiceLegendItem

  • mapServiceLegendItem(lyrObject: any, skipLayerNameAndExpander?: boolean): string
  • Parameters

    • lyrObject: any

      the layer as defined in the response

    • Default value skipLayerNameAndExpander: boolean = false

    Returns string

    legend html

propertiesZoomStyle

  • propertiesZoomStyle(styleFunc: any): (Anonymous function)
  • wrapper to define a style function by properties and zoom level

    Parameters

    • styleFunc: any

      style function

    Returns (Anonymous function)

    new function

provide

  • provide(namespace: any): any
  • create a namespace on the gv object

    Parameters

    • namespace: any

      to create

    Returns any

    object representing the namespace

quickMap

quickMapBase

quickMapMulti

rangeChange

  • Add a variety of listeners for range inputs applied to a common callback

    this

    {jQuery}

    Parameters

    • $slider: JQuery

      jquery reference to the slider

    • callback: rangeChangedCallback

      the callback

    • changeTimeout: number

    Returns any

    the jQuery object

resolutionToZoom

  • resolutionToZoom(resolution: any): number

rgb2hex

  • rgb2hex(rgb: any): string
  • converts an RGB string to hex

    Parameters

    • rgb: any

      rgb color

    Returns string

    rbg as hex

rgbToRgba

  • rgbToRgba(rgb: any, alpha: any): any
  • adds alpha value to rgb string 'rgb(r, b, g)', returns 'rgba(r, g, b, a)'

    Parameters

    • rgb: any

      rgb color

    • alpha: any

      alpha value 0 to 1

    Returns any

    rgba color

timeToLocalDateString

  • timeToLocalDateString(tm: any): string

triggerCallback

undefinedOrNull

  • undefinedOrNull(input: any): boolean
  • check if the input is undefined or null

    Parameters

    • input: any

      input pointer

    Returns boolean

    true undefined or null

zoomToResolution

  • zoomToResolution(zoomLevel: any): number

Generated using TypeDoc