Namespace: Util

BKGWebMap.Layer. Util

Helper functions for layers
Source:

Methods

<static> createFeaturesForCsvExcel(json, config, type, dataProjection, mapProjection) → {object|undefined}

Create features for CSV and XLS layers
Parameters:
Name Type Description
json array Data from CSV or XLS
config CSV | XLS CSV/XLS Configuration
type string Layer type (CSV/XLS)
dataProjection string Projection of coordinates in CSV/XLS
mapProjection string Map projection
Source:
Returns:
Type
object | undefined

<static> createFeaturesForGps(gpx, config, gpsProjection, mapProjection, callback) → {function}

Create features for GPS through a custom layer
Parameters:
Name Type Description
gpx object GPX data
config GPS GPS Configuration
gpsProjection string EPSG Code of GPX data projection
mapProjection EPSG Code of map projection
callback function Callback function. It will be called when all information of layer are parsed.
Source:
Returns:
Type
function

<static> parseCsvExcelJson(format, json, config, options, featureProjection, mapProjection, copyright, callback) → {function}

Parse JSON with CSV/XLS data
Parameters:
Name Type Description
format string Layer type (CSV/XLS)
json array Array with CSV/XLS data
config CSV | XLS CSV/XLS Configuration
options object Options used to parse data from XLS/CSV
featureProjection string EPSG Code of data projection in XLS/CSV
mapProjection string EPSG Code of map projection
copyright string | undefined Data copyright
callback function Callback function. It will be called when all information of layer are parsed.
Source:
Returns:
Type
function

<static> programmaticLayerConfig(layer) → {object|string}

Find configuration for layers that are programmatically added
Parameters:
Name Type Description
layer object Layer added
Source:
Returns:
Type
object | string