Leverege Platform

Leverege Platform

  • Overview
  • JSDocs
  • REST API
  • Help

›JSDoc

JSDoc

  • Home
  • API Server
  • API Attributes
  • Api Patch Ops
  • API Redux
  • Array Util
  • Base62 Util
  • Cache
  • Cluster Manager
  • Data Store
  • Exit
  • Factory
  • Limit
  • Lock
  • Message Queue
  • Messages
  • Path
  • Permissions
  • Reasoner
  • String Util
  • UI Active Theme
  • UI Elements
  • UI Linear View Elements
  • UI Mapbox Elements
  • Validator

UI Mapbox Elements

Classes

GeoshapeAdapter

This should be derived from and supplied to the GeoshapeController to perform actions related to creating, updating, and display geoshapes on the map

Constants

SATELLITE

This file is used to control the types and url of the mapboxs imagery.

Functions

url(style) ⇒

Returns the mapbox url for the given style

next(style) ⇒

Returns the next style, assuming the types exist in a list

init(options)

Sets the options for the style.

create()

Returns a Symbolizer that will return { symbol, layer } where symbol is the name or - if the data item is targeted, selected or rolled over

addImage(name, imageOptions)

Adds an image to the Symbols

addAlias()

Adds an alias. Any references to name will be redirected to the param mapsTo

getImagesArray()

Reorganizes this.images into [ [name0, image0], ..., [nameN, imageN]] for mapbox

getLayers()

Returns a array of layers to render. Because Mapbox cannot control the line properties of a filled shape very well, this will create two separate layers per geoshape, one for the fill and selection, on for the outline.

getLayers(sourceMap)

Returns an object { normal : [ ], rollover : [ ] }

getPosition(data)

Returns the position array [longitude, latitude] for the given data. By default this will use the Path access objects to get the position

getLayerNames()

Returns the layer names that will be generated. Useful for supplying to selectableLayerIds or rolloverableLayersIds to set what types can be clicked or rolled over.

getLayers(dataList, options) ⇒

This will return a set of layers used to represent the dataList

GeoshapeAdapter

This should be derived from and supplied to the GeoshapeController to perform actions related to creating, updating, and display geoshapes on the map

Kind: global class

  • GeoshapeAdapter
    • .addShape(shape) ⇒ Promise(Shape)
    • .updateShape(shape) ⇒ Promise

geoshapeAdapter.addShape(shape) ⇒ Promise(Shape)

Called when a new shape should be added to the data source

Kind: instance method of GeoshapeAdapter

ParamTypeDescription
shapeobjectthe shape to add to the data source. Returned from createShape

geoshapeAdapter.updateShape(shape) ⇒ Promise

Update a shape should be added to the data source

Kind: instance method of GeoshapeAdapter

ParamTypeDescription
shapeobjectthe shape to add to the data source. Returned from createShape

SATELLITE

This file is used to control the types and url of the mapboxs imagery.

Kind: global constant

url(style) ⇒

Returns the mapbox url for the given style

Kind: global function
Returns: the mapbox url for the style, or for vector if the style is unknown

ParamTypeDescription
stylestringeither SATELLITE or VECTOR

next(style) ⇒

Returns the next style, assuming the types exist in a list

Kind: global function
Returns: the next style, or for VECTOR if the style is unknown

ParamTypeDescription
stylestringeither SATELLITE or VECTOR

init(options)

Sets the options for the style.

Kind: global function

ParamTypeDescription
optionsobject
options.stylesobject
options.styles.<STYLEstringKEY> the mapbox url for the style

create()

Returns a Symbolizer that will return { symbol, layer } where symbol is the name or -<targeted | selected | rollover> if the data item is targeted, selected or rolled over

Kind: global function

addImage(name, imageOptions)

Adds an image to the Symbols

Kind: global function

ParamTypeDescription
namestringthe name of the symbol
imageOptionsobject
imageOptions.srcstringthe source of the image
imageOptions.widthintthe width to scale the image to
imageOptions.heightintthe height to scale the image to

addAlias()

Adds an alias. Any references to name will be redirected to the param mapsTo

Kind: global function

getImagesArray()

Reorganizes this.images into [ [name0, image0], ..., [nameN, imageN]] for mapbox

Kind: global function

getLayers()

Returns a array of layers to render. Because Mapbox cannot control the line properties of a filled shape very well, this will create two separate layers per geoshape, one for the fill and selection, on for the outline.

Kind: global function

getLayers(sourceMap)

Returns an object { normal : [ ], rollover : [ ] }

Kind: global function

ParamTypeDescription
sourceMapobjectthis supplies information that can be used to render the lines. The keys of this objects match the keys in the pointsMap. The default linePaint will look for lineColor in the object at this key to determine the color of the lines specified by the objects in Array at pointsMap[key]

getPosition(data)

Returns the position array [longitude, latitude] for the given data. By default this will use the Path access objects to get the position

Kind: global function

ParamTypeDescription
dataobjectthe data object

getLayerNames()

Returns the layer names that will be generated. Useful for supplying to selectableLayerIds or rolloverableLayersIds to set what types can be clicked or rolled over.

Kind: global function

getLayers(dataList, options) ⇒

This will return a set of layers used to represent the dataList

Kind: global function
Returns: and object container normal, rollover, selected, targeted fields that hold Layer objects

ParamTypeDescription
dataListarraythe objects to render
optionsobject
options.symbolizerobjectfunction( data, { selected, targeted, rollover } ))
options.selectedobjectthe selected data
options.targetedobjectthe targeted data for the dataList
options.rolloverobjectthe rollover data for the dataList
options.isSelectableobjecttrue if the objects should be selectable
options.isRolloverableobjecttrue if the objects should be rolloverable
← UI Linear View ElementsValidator →
  • Classes
  • Constants
  • Functions
  • GeoshapeAdapter
    • geoshapeAdapter.addShape(shape) ⇒ Promise(Shape)
    • geoshapeAdapter.updateShape(shape) ⇒ Promise
  • SATELLITE
  • url(style) ⇒
  • next(style) ⇒
  • init(options)
  • create()
  • addImage(name, imageOptions)
  • addAlias()
  • getImagesArray()
  • getLayers()
  • getLayers(sourceMap)
  • getPosition(data)
  • getLayerNames()
  • getLayers(dataList, options) ⇒
Leverege Platform
Docs
Overview
Connect
FacebookLinkedInTwitter
Facebook Open Source