meteoJS/synview/resource/GeoJSON . GeoJSON
Source: synview/
Object representing a GeoJSON-resource.
Properties
Methods
new GeoJSON()
Properties
className unknown
Classname.
- Inherited from
- module:meteoJS/synview/resource.Resource#className
imageSmoothingEnabled unknown
imageSmoothingEnabled.
Methods
getDatetime() → (Date or undefined)
Returns the datetime of the resource.
- Inherited from
- module:meteoJS/synview/resource.Resource#getDatetime
- Returns
-
Date.
getId() → mixed
Returns an ID for this resource. Should change, if content of resource changes.
- Inherited from
- module:meteoJS/synview/resource.Resource#getId
- Returns
-
Id.
getLayerGroup() → (external:ol.layer.group, external:L.layerGroup, or undefined)
Returns the layer group of the resource layer.
- Inherited from
- module:meteoJS/synview/resource.Resource#getLayerGroup
- Returns
-
Layer group.
getLLLayer() → external:L.layer
Returns layer for Leaflet of this resource.
- Inherited from
- module:meteoJS/synview/resource.Resource#getLLLayer
- Returns
-
Leaflet layer.
getMIMEType() → string
Returns MIME-Type of the resource.
- Inherited from
- module:meteoJS/synview/resource.Resource#getMIMEType
- Returns
-
MIME-Type.
getOLLayer() → external:ol.layer.Layer
Returns layer for openlayers of this resource.
- Inherited from
- module:meteoJS/synview/resource.Resource#getOLLayer
- Returns
-
openlayers layer.
getOpacity() → number
Returns opacity of the resource layer.
- Inherited from
- module:meteoJS/synview/resource.Resource#getOpacity
- Returns
-
Opacity.
getReloadTime() → (undefined or integer)
Returns the current reload time.
- Inherited from
- module:meteoJS/synview/resource.Resource#getReloadTime
- Returns
-
Reload time period.
getUrl() → (string or undefined)
Returns URL to the resource. Undefined if unknown.
- Inherited from
- module:meteoJS/synview/resource.Resource#getUrl
- Returns
-
URL.
getVisible() → boolean
Returns the visibility of the resource layer.
- Inherited from
- module:meteoJS/synview/resource.Resource#getVisible
- Returns
-
Visible.
getZIndex() → (number or undefined)
Returns the z-Index of the resource layer.
- Inherited from
- module:meteoJS/synview/resource.Resource#getZIndex
- Returns
-
z-Index.
makeLLLayer() → external:L.Layer
Returns Leaflet layer of this resource. Must be overwritten by child classes.
- Inherited from
- module:meteoJS/synview/resource.Resource#makeLLLayer
- Returns
-
Leaflet layer.
makeOLLayer() → external:ol.layer.Layer
Returns openlayers layer of this resource. Must be overwritten by child classes.
- Inherited from
- module:meteoJS/synview/resource.Resource#makeOLLayer
- Returns
-
openlayers layer.
preload()
Preload resource. By default, openlayers loads the resource as soon as the resource gets visible.
- Inherited from
- module:meteoJS/synview/resource.Resource#preload
setLayerGroup(layerGroup) → module:meteoJS/synview/resource.Resource
Sets the layer group and adds the resource layer to this group. If undefined is passed, the resource layer will be deleted and removed for any layer group.
Parameter
Name | Type | Optional | Description |
---|---|---|---|
layerGroup |
|
|
Layer group. |
- Inherited from
- module:meteoJS/synview/resource.Resource#setLayerGroup
- Returns
-
This.
setOLStyle([style]) → module:meteoJS/synview/resource/Vector.Vector
Sets style of the OpenLayers vector layer. If argument 'style' is omitted, the style will be updated.
Parameter
Name | Type | Optional | Description |
---|---|---|---|
style |
|
Yes |
OpenLayers style. |
- Inherited from
- module:meteoJS/synview/resource/Vector.Vector#setOLStyle
- Returns
-
This.
setOpacity(opacity) → module:meteoJS/synview/resource.Resource
Sets opacity of the resource layer.
Parameter
Name | Type | Optional | Description |
---|---|---|---|
opacity |
|
|
Opacity. |
- Inherited from
- module:meteoJS/synview/resource.Resource#setOpacity
- Returns
-
This.
setReloadTime(reloadTime) → module:meteoJS/synview/resource.Resource
Sets the reload time.
Parameter
Name | Type | Optional | Description |
---|---|---|---|
reloadTime |
|
|
Reload time period. |
- Inherited from
- module:meteoJS/synview/resource.Resource#setReloadTime
- Returns
-
This.
setVisible(visible) → module:meteoJS/synview/resource.Resource
Sets the visibility of the resource layer.
Parameter
Name | Type | Optional | Description |
---|---|---|---|
visible |
|
|
Visible. |
- Inherited from
- module:meteoJS/synview/resource.Resource#setVisible
- Returns
-
This.
setZIndex(zIndex) → module:meteoJS/synview/resource.Resource
Sets the z-Index of the resource layer.
Parameter
Name | Type | Optional | Description |
---|---|---|---|
zIndex |
|
|
z-Index. |
- Inherited from
- module:meteoJS/synview/resource.Resource#setZIndex
- Returns
-
This.