Namespace: dbkjs

dbkjs

Classes

Capabilities
Class
Connection
Feed
Layer
Module

Namespaces

argParser
gui
layers
layout
mapcontrols
Permalink
util

Methods

(static) activateClick()

Register Click and Touchend events on the map

(static) bind_dbkjs_init_complete()

When the application has rendered, enable and disable controls depending on the display being optimized for mobile devices or not.

(static) challengeAuth()

Retrieve organisation configuration from the REST API

(static) documentReady()

Initialize all dependencies and the application components

(static) finishMap()

Draw the map

(static) getStyleScaleFactor() → {Number}

Factor to scale styling elements with

Returns:
Type
Number

(static) init()

Initialize the application

(static) loadOrganisationCapabilities()

Parse WMS capabilities document from the OGC WMS interface and add the layers to the dialogs

(static) redrawScaledLayers()

Redraw all layers for which scaling of style applies

(static) scaleStyleValue(value, featureAttributeValue, attributeScaleFactor)

Return a styling value with user size adjustment and scaled according to map map scale (if style scaling is enabled). If featureAttributeValue is not undefined use that instead of the first argument. If attributeScaleFactor is not undefined scale the featureAttributeValue by that factor.

Parameters:
Name Type Description
value type
featureAttributeValue type
attributeScaleFactor type
Returns:

{Number|dbkjs.options.originalScaledbkjs.options.originalScale|

(static) setDbkCategoryVisibility(category, visibleopt)

Toggle object visibility on the map depending on category

Parameters:
Name Type Attributes Default Description
category String

the name for the category to toggle

visible Boolean <optional>
false

true for on, false for off

(static) setPaths()

Configure paths to be used by the application for retrieving assets

(static) successAuth()

Render the Application

(static) toggleBaseLayer(number)

Update the visibility for baseLayers

Parameters:
Name Type Description
number integer

the id for the baseLayer to toggle