Class: Layer

MobileAge.Layer(map, options)

Map-Layer*

Constructor

new Layer(map, options)

Wrapper class for Map layers. Inherits to the different layer types, but is not used directly.
Parameters:
Name Type Description
map Object The map to place this layer
options Object
Properties
Name Type Attributes Default Description
queryService String <optional>
"" Predefined service to be called. Possible values: "Overpass", "Nominatim", "Route"
xhrQuery String <optional>
"" Used for the Route-service (e.g.: {startLatLon: [53.063197, 8.963348561],endLatLon: [53.058814, 8.9299724]}) or Nominatim ([lat, lon] for getting an address by coordinates, or a string for getting coordinates)
category String <optional>
"" If Overpass is used, category as defined at OSM map features.
type String <optional>
"" If Overpass or Nominatim are is used, type as defined at OSM map features.
minZoom Number <optional>
0 Minimum zoomlevel, on which the layer is shown.
minShift Number <optional>
100 Minimum distance (in meters), which the map must be dragged to recall the data service.
refresh Boolean <optional>
false Wether the defined web-service is recalled.
Source:

Extends

Classes

Heatmap
Marker
Path
Polygon

Methods

(static) _addLayerContent(layerContent)

Creates a feature group, fills it and adds it to the map
Parameters:
Name Type Description
layerContent object
Source:

(static) _createNoData()

creates a okay-message on the page
Source:

(static) _getData()

Retrieve remote data
Source:

(static) _onRequestData(data)

Callback function called when requested data is received
Parameters:
Name Type Description
data string requested data
Source:

(static) remove()

Removes this layer
Source: