Typedef
Static Public Summary | ||
public |
|
|
public |
AnyLayerConfig: SilentGroupLayerConfig | CategoryLayerConfig | EmptyLayerConfig | XYZLayerConfig | OSMLayerConfig | StamenLayerConfig | BingLayerConfig | WMTSLayerConfig | WMSLayerConfig | TileWMSLayerConfig | GeoJSONLayerConfig | KMLLayerConfig | InternalLayerConfig |
|
public |
AnyLayerConfig: SilentGroupLayerConfig | CategoryLayerConfig | EmptyLayerConfig | XYZLayerConfig | OSMLayerConfig | StamenLayerConfig | BingLayerConfig | WMTSLayerConfig | WMSLayerConfig | TileWMSLayerConfig | GeoJSONLayerConfig | KMLLayerConfig | InternalLayerConfig |
|
public |
ArcGISRESTFeatureSourceOptions: module:ol/source/Vector~Options Please note that a 'BBOX' or 'TILE' loadingStrategy is required |
|
public |
|
|
public |
|
|
public |
A bing maps Layer (See http://openlayers.org/en/latest/apidoc/ol.source.BingMaps.html). |
|
public |
A bing maps Layer (See http://openlayers.org/en/latest/apidoc/ol.source.BingMaps.html). |
|
public |
|
|
public |
|
|
public |
|
|
public |
The category contains other layer(s) and will appear as a category in the layer selector. |
|
public |
The category contains other layer(s) and will appear as a category in the layer selector. |
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
Inside of this object the controls are configured. |
|
public |
|
|
public |
|
|
public |
|
|
public |
The empty layer will show nothing (in case of a base layer a white background). |
|
public |
The empty layer will show nothing (in case of a base layer a white background). |
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
This describes the floating directions of an element. |
|
public |
|
|
public |
A GeoJSON Layer. |
|
public |
A GeoJSON Layer. |
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
A layer whichs contents are completly defined in the config file. |
|
public |
A layer whichs contents are completly defined in the config file. |
|
public |
An internal source whose features are defined directly in the config file. |
|
public |
An internal source whose features are defined directly in the config file. |
|
public |
A KML Layer. |
|
public |
A KML Layer. |
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
Localizable: Object<string, string> | string |
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
An OSM Layer (See http://openlayers.org/en/latest/apidoc/ol.source.OSM.html). |
|
public |
An OSM Layer (See http://openlayers.org/en/latest/apidoc/ol.source.OSM.html). |
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
The silent group can display a group of layers which appears as a single in the layer selector. |
|
public |
The silent group can display a group of layers which appears as a single in the layer selector. |
|
public |
SingleMoveOptions: FitOptions |
|
public |
A source config. |
|
public |
A source config. |
|
public |
SourceServerVectorOptions: module:ol/source/Vector~Options |
|
public |
A stamen Layer (See http://openlayers.org/en/latest/apidoc/ol.source.Stamen.html). |
|
public |
A stamen Layer (See http://openlayers.org/en/latest/apidoc/ol.source.Stamen.html). |
|
public |
StaticOverviewMapOptions: ControlOptions |
|
public |
StyleLike: string | StyleObject | ol.style.Style |
|
public |
|
|
public |
A WMS Layer which is called like a tiled layer. |
|
public |
A WMS Layer which is called like a tiled layer. |
|
public |
|
|
public |
|
|
public |
URLLike: URLConfig | Localizable | URL |
|
public |
|
|
public |
|
|
public |
A vector source config. |
|
public |
A vector source config. |
|
public |
|
|
public |
|
|
public |
A WMS Layer. |
|
public |
A WMS Layer. |
|
public |
A wms source config. |
|
public |
A WMTS Layer. |
|
public |
A WMTS Layer. |
|
public |
A wmts source config. |
|
public |
A wmts source config. |
|
public |
|
|
public |
|
|
public |
A XYZ Layer (See http://openlayers.org/en/latest/apidoc/ol.source.XYZ.html). |
|
public |
A XYZ Layer (See http://openlayers.org/en/latest/apidoc/ol.source.XYZ.html). |
|
public |
|
|
public |
|
|
public |
Common config for all layers. |
|
public |
Common config for all layers. |
|
public |
|
Static Public
public APIOptions: object source
Properties:
Name | Type | Attribute | Description |
drawStyle | StyleLike |
|
public AnyLayerConfig: SilentGroupLayerConfig | CategoryLayerConfig | EmptyLayerConfig | XYZLayerConfig | OSMLayerConfig | StamenLayerConfig | BingLayerConfig | WMTSLayerConfig | WMSLayerConfig | TileWMSLayerConfig | GeoJSONLayerConfig | KMLLayerConfig | InternalLayerConfig source
public AnyLayerConfig: SilentGroupLayerConfig | CategoryLayerConfig | EmptyLayerConfig | XYZLayerConfig | OSMLayerConfig | StamenLayerConfig | BingLayerConfig | WMTSLayerConfig | WMSLayerConfig | TileWMSLayerConfig | GeoJSONLayerConfig | KMLLayerConfig | InternalLayerConfig source
public ArcGISRESTFeatureSourceOptions: module:ol/source/Vector~Options source
Please note that a 'BBOX' or 'TILE' loadingStrategy is required
Properties:
Name | Type | Attribute | Description |
params | object |
|
the params to be passed to the ArcGIS REST Feature Service. The params f, returnGeometry, geometry, geometryType, inSR and outSr can not be set as they are filled automatically. The SR parameters will be set to the projection of the source if one is given. geometry and geometryType will always be an 'esriGeometryEnvelope'. f will be 'json' and returnGeometry 'true'. The parameters spatialRel and outFields can be altered and default to 'esriSpatialRelIntersects' and '*'. |
dataType | string |
|
can be 'json' or 'jsonp' |
public ArrowButtonOptions: g4uControlOptions source
Properties:
Name | Type | Attribute | Description |
pixelDelta | number |
|
how many pixels should one click move the map |
initExtent | ol.Extent | undefined |
|
the initial Extent to move the map back to (center button) |
animationDuration | number |
|
duration of the animation |
animated | boolean |
|
if the move should be done with an animation or without |
labels | {up: string, right: string, down: string, left: string, center: string}|{} |
|
unicode labels for the buttons (only shown if pictures are not loaded) |
public BaseLayerMixinOptions: object source
Properties:
Name | Type | Attribute | Description |
groupLayer | GroupLayer | the group this baseLayer belongs to |
public BingLayerConfig: g4uLayerOptions source
A bing maps Layer (See http://openlayers.org/en/latest/apidoc/ol.source.BingMaps.html).
Properties:
Name | Type | Attribute | Description |
type | "Bing" | ||
source | SourceConfig |
public BingLayerConfig: g4uLayerOptions source
A bing maps Layer (See http://openlayers.org/en/latest/apidoc/ol.source.BingMaps.html).
Properties:
Name | Type | Attribute | Description |
type | "Bing" | ||
source | SourceConfig |
public ButtonActions: object source
Properties:
Name | Type | Attribute | Description |
toggleActive | * | ||
toggleDisabled | * | ||
toggleLoading | * |
public ButtonBoxOptions: object source
Properties:
Name | Type | Attribute | Description |
className | string |
|
|
addClass | string |
|
adds a classname |
content | HTMLElement | jQuery |
|
the content of the body of the button box |
collapsible | boolean |
|
|
collapsed | boolean |
|
|
rtl | boolean |
|
|
titleButton | boolean |
|
displays an extra button with a title firing an 'title:click' event |
title | string |
|
the title appearing on the button |
public CategoryLayerConfig: g4uLayerOptions source
The category contains other layer(s) and will appear as a category in the layer selector.
Properties:
Name | Type | Attribute | Description |
type | "Category" | ||
layers | AnyLayerConfig[] |
public CategoryLayerConfig: g4uLayerOptions source
The category contains other layer(s) and will appear as a category in the layer selector.
Properties:
Name | Type | Attribute | Description |
type | "Category" | ||
layers | AnyLayerConfig[] |
public CloseWindowButtonOptions: g4uControlOptions source
Properties:
Name | Type | Attribute | Description |
label | string |
|
public CombinedZoomOptions: ComposedControlOptions source
Properties:
Name | Type | Attribute | Description |
buttons | boolean |
|
visibility of the zoombuttons |
slider | boolean |
|
visibility of the zoomslider |
buttonImportance | number |
|
importance of the buttons |
sliderImportance | number |
|
importance of the slider |
zoomInTipLabel | string |
|
|
zoomOutTipLabel | string |
|
public ComposedControlOptions: g4uControlOptions source
public ControlsConfig: object source
Inside of this object the controls are configured. Normally they are referenced by their type, but if
you have multiple controls of one type you can specify a name under which it is referenced. Then you
have to specify the controlType
in the configuration object.
Example:
let 'example'
be the chosen name for an attribution control. Then we can reference it in onMap
or
any contains
property as 'example'
. The configuration object is now named 'example'
but needs to
have an 'controlType'
property which needs to be set to 'attribution'
.
"controls": {
"onMap": ["example"],
"example": {
"controlType": "attribution",
...
}
}
Properties:
Name | Type | Attribute | Description |
onMap | string[] | All controls mentioned in this array will be added directly to the map. |
|
arrowButtons | ArrowButtonOptions |
|
|
attribution | AttributionOptions |
|
|
combinedZoom | CombinedZoomOptions |
|
|
geolocationButton | GeoLocationButtonOptions |
|
|
helpButton | HelpButtonOptions |
|
|
infoButton | InfoButtonOptions |
|
|
languageSwitcherButton | LanguageSwitcherButtonOptions |
|
|
languageSwitcherMenu | LanguageSwitcherMenuOptions |
|
|
layerSelector | LayerSelectorOptions |
|
|
linkButton | LinkButtonOptions |
|
|
logo | LogoOptions |
|
|
measurementButton | MeasurementButtonOptions |
|
|
mobileControls | ShiftableComposedControlOptions |
|
|
mousePosition | MousePositionOptions |
|
|
overviewMap | OverviewMapOptions |
|
|
printButton | g4uControlOptions |
|
|
scaleLine | ScaleLineOptions |
|
|
singleDrawButton | DrawButtonsOptions |
|
|
toolbox | ComposedControlOptions |
|
|
layerMenu | ComposedControlOptions |
|
public DrawButtonsOptions: g4uControlOptions source
public ElementPosition: object source
Properties:
Name | Type | Attribute | Description |
$actualElement | jQuery | ||
$oldParent | jQuery | ||
oldIndex | number |
public EmptyLayerConfig: g4uLayerOptions source
The empty layer will show nothing (in case of a base layer a white background).
Properties:
Name | Type | Attribute | Description |
type | "Empty" |
public EmptyLayerConfig: g4uLayerOptions source
The empty layer will show nothing (in case of a base layer a white background).
Properties:
Name | Type | Attribute | Description |
type | "Empty" |
public FeatureInteractionOptions: MapEventInteractionOptions source
Properties:
Name | Type | Attribute | Description |
hitTolerance | number |
|
public FeaturePopupOptions: object source
Properties:
Name | Type | Attribute | Description |
className | string |
|
|
offset | number[] |
|
|
positioning | OverlayPositioning |
|
|
iconSizedOffset | number[] |
|
|
centerOnPopup | boolean |
|
|
animated | boolean |
|
|
popupModifier | string[] |
|
default popupModifiers to use |
draggable | boolean |
|
public Float: string[] | string source
This describes the floating directions of an element. It can be an array, then it will move from the center to the first specified direction and after that it moves in the second direction. If it is set to 'fixed' it is not positioned via Positioning.
public GeoJSONLayerConfig: g4uLayerOptions source
A GeoJSON Layer.
Properties:
Name | Type | Attribute | Description |
type | "GeoJSON" | ||
source | VectorSourceConfig | ||
style | StyleLike |
|
public GeoJSONLayerConfig: g4uLayerOptions source
A GeoJSON Layer.
Properties:
Name | Type | Attribute | Description |
type | "GeoJSON" | ||
source | VectorSourceConfig | ||
style | StyleLike |
|
public GeoLocationButtonOptions: g4uControlOptions source
public GroupButtonConfig: ButtonConfig source
Properties:
Name | Type | Attribute | Description |
type | "group" | ||
title | Localizable | ||
groupButton | string |
|
can be "noButton", "onlyMenu" or "activate" "noButton": the group itself will have no button, the contained buttons are displayed on the same level "onlyMenu": the group has a button which can be clicked to open/close the submenu with the contained layers "activate": the group has 2 buttons. One will open/close the submenu, the other will de-/activate all layers |
items | string |
|
can be "normal" or "exclusive" "normal": all contained layers can be activated independently "exclusive": activating one layer in this group will deactivate the others. |
unselectable | boolean |
|
specifies if a button can be unselected |
collapsible | boolean |
|
|
collapsed | boolean |
|
public HelpButtonOptions: g4uControlOptions source
public HideableElement: Object source
Properties:
Name | Type | Attribute | Description |
control | Control | ||
importance | number | ||
order | number | ||
float | Float |
|
first and second direction or special value 'fixed' |
hideableChildren | HideableElement[] |
|
public InfoButtonOptions: g4uControlOptions source
public InternalLayerConfig: g4uLayerOptions source
A layer whichs contents are completly defined in the config file.
Properties:
Name | Type | Attribute | Description |
type | "Intern" | ||
source | InternalSourceConfig | ||
style | StyleLike |
|
public InternalLayerConfig: g4uLayerOptions source
A layer whichs contents are completly defined in the config file.
Properties:
Name | Type | Attribute | Description |
type | "Intern" | ||
source | InternalSourceConfig | ||
style | StyleLike |
|
public InternalSourceConfig: SourceConfig source
An internal source whose features are defined directly in the config file.
Properties:
Name | Type | Attribute | Description |
features | FeatureConfig[] |
public InternalSourceConfig: SourceConfig source
An internal source whose features are defined directly in the config file.
Properties:
Name | Type | Attribute | Description |
features | FeatureConfig[] |
public KMLLayerConfig: g4uLayerOptions source
A KML Layer.
Properties:
Name | Type | Attribute | Description |
type | "KML" | ||
source | VectorSourceConfig | ||
style | StyleLike |
|
public KMLLayerConfig: g4uLayerOptions source
A KML Layer.
Properties:
Name | Type | Attribute | Description |
type | "KML" | ||
source | VectorSourceConfig | ||
style | StyleLike |
|
public LanguageSwitcherButtonOptions: g4uControlOptions source
public LanguageSwitcherMenuOptions: g4uControlOptions source
public LayerButtonConfig: ButtonConfig source
Properties:
Name | Type | Attribute | Description |
type | "layer" | ||
title | Localizable |
|
if not set, the title of the layer will be chosen |
refId | string | number | the id of the layer |
|
exclusive | string | all layers with the same exclusive value are mutually exclusive active |
public LayerConfig: object source
Properties:
Name | Type | Attribute | Description |
menus | object<string, ButtonConfig> | ||
layers | AnyLayerConfig[] |
public LayerSelectorOptions: g4uControlOptions source
Properties:
Name | Type | Attribute | Description |
collapsible | boolean |
|
if the menu should be collapsible |
collapsed | boolean |
|
if the menu starts collapsed |
minVisibleEntries | number |
|
amount of minimal visible elements |
layerGroupName | string | the name of the layerGroup this selector is connected to. For example 'baseLayers' |
|
minLayerAmount | number |
|
the minimum number of layers which should be visible to show this selector |
public LayerSelectorOptions: g4uControlOptions source
Properties:
Name | Type | Attribute | Description |
collapsible | boolean |
|
if the menu should be collapsible |
collapsed | boolean |
|
if the menu starts collapsed |
minVisibleEntries | number |
|
amount of minimal visible elements |
menuName | string | the name of the layerMenu this selector is connected to. For example 'baseLayers' |
|
minLayerAmount | number |
|
the minimum number of layers which should be visible to show this selector |
checkboxes | boolean |
|
if the layerbuttons should have trailing checkboxes |
public LinkButtonOptions: g4uControlOptions source
public LinkGeneratorButtonOptions: g4uControlOptions source
public LinkGeneratorOptions: g4uControlOptions source
public LogoOptions: g4uControlOptions source
public MapConfig: Object source
Properties:
Name | Type | Attribute | Description |
proxy | string |
|
A proxy url. It should have an {url} string which will be replaced with the proxied url. Example: 'proxy.php?csurl={url}'. |
userActionTracking | Boolean |
|
if checked the map tracks certain user actions and fires 'userActionTracking' events that contain this information. Tracked actions are: move, layer activation, clicks on features, printing, measurements. |
languageSettings | L10NOptions |
|
settings regarding the display language. |
interfaceProjection | string |
|
the projection the interface will use to interact with the user or the api. |
mapProjection | string |
|
the projection that is used internally. Will be infered from map data if not set. |
measurementProjection | string |
|
the projection measurements will calculated in. |
enableContextMenu | boolean |
|
enables the contextMenu outside of textinput fields |
view | g4uViewOptions | View options. |
|
scaleIcons | number |
|
a default scaling for all used feature icons |
hitTolerance | number |
|
a default hit tolerance that will be used for all interactions (except show wms feature info). |
manageStyles | boolean |
|
set this to false to disable style managing. This disables scaleIcons, mobileScaleIcons, feature hiding and adjustable style opacity |
mobileLayout | MobileLayoutOptions |
|
special layout options for mobile use. |
additionalProjections | ProjectionConfig[] |
|
if any other projections than 'EPSG:4326' or 'EPSG:3857' are needed they can be specified here. |
api | APIOptions |
|
API-Options |
featurePopup | FeaturePopupOptions |
|
Options regarding the feature popup. |
featureTooltip | FeatureTooltipOptions |
|
Options regarding the feature tooltip. |
showWMSFeatureInfo | ShowWMSFeatureInfoOptions |
|
Options regarding WMS GetFeatureInfo. |
interactions | Object<string, boolean> |
|
Specifies which map interactions should be turned on by default. Possible interactions are: 'doubleClickZoom', 'dragPan' (to which the {KineticOptions} are applied), 'dragRotate', 'dragZoom', 'keyboardPan', 'keyboardZoom', 'mouseWheelZoom', 'pinchRotate', 'pinchZoom' |
kinetic | KineticOptions | boolean |
|
This influences the DragPan behaviour. If set to false no kinetic options are applied, if not set, the defaults are used. |
move | MoveOptions |
|
Options regarding the behaviour of movements on the maps. |
positioning | PositioningOptions |
|
Options regarding the positioning of the controls. |
loadingStrategy | string |
|
Global default loading strategy. Can have the values 'BBOX' or 'ALL'. |
ignoreLayerAvailability | boolean |
|
If set all layers are added to the map, regardless of their available config option. |
cssFile | string |
|
a cssFile to load and insert in the head dynamically. |
cssTemplate | Color[] |
|
if 3 colors are given, the colors used in the text of the loaded cssFile will be replaced by this colors. The colors in the cssFile need to be pure red, blue and green. |
styleMap | Object<string, StyleObject> |
|
the style objects which will be mapped to certain identifiers. It is recommended that identifiers start with a #. The {{StyleObject}} with the identifier '#defaultStyle' will be used as a default Style in the whole Software. |
controls | ControlsConfig |
public MapEventInteractionOptions: object source
Properties:
Name | Type | Attribute | Description |
type | string |
|
the map event type to listen to |
public MarkerOptions: object source
Properties:
Name | Type | Attribute | Description |
style | StyleLike |
|
public MaximizeButtonOptions: g4uControlOptions source
public MeasurementButtonOptions: g4uControlOptions source
Properties:
Name | Type | Attribute | Description |
style | StyleLike |
|
|
type | string | geometry type ('LineString', 'Polygon') |
|
dimension | number |
|
1 for lines, 2 for polygons |
atDrawEnd | string |
|
if set to 'newMeasurement' the control will start a new measurement after completing a measurement. if set to 'closeWindow' the window will be closed. |
active | boolean |
|
public MessageConstructorOptions: MessageDisplayOptions source
Properties:
Name | Type | Attribute | Description |
arrowShow | boolean |
|
whether to show an arrow pointing at the element |
arrowSize | number |
|
Arrow size in pixels |
autoHide | boolean |
|
whether to auto-hide the notification |
autoHideDelay | number |
|
milliseconds before hide (if autoHide is set) |
className | string | string[] |
|
default class |
position | string |
|
notification position relative to element |
gap | number |
|
padding between element and notification |
hideAnimation | string |
|
hide animation type |
hideDuration | number |
|
hide animation duration in milliseconds |
showAnimation | string |
|
show animation type |
showDuration | number |
|
show animation duration in miliseconds |
style | string |
|
default style |
public MessageDisplayOptions: MessageReducedDisplayOptions source
public MobileLayoutOptions: object source
Properties:
Name | Type | Attribute | Description |
mediaQueries | string[] | these will enable the mobile layout including removing the g4u-desktop class from the ol-viewport and adding the g4u-mobile class |
|
scaleIcons | number |
|
a value to scale all icons by |
animations | boolean |
|
if animations should be disabled |
hitTolerance | number |
|
public MousePositionOptions: g4uControlOptions source
Properties:
Name | Type | Attribute | Description |
coordinateFormat | function |
|
public MoveOptions: object source
Properties:
Name | Type | Attribute | Description |
map | G4UMap | ||
pixelPadding | number |
|
a default padding around the target extent in pixels |
meterMinSize | number |
|
the minimal size of the target extent in meters |
animationDuration | number |
|
|
animations | boolean |
|
|
bouncing | boolean |
|
if the animation should bounce or not |
public OSMLayerConfig: g4uLayerOptions source
An OSM Layer (See http://openlayers.org/en/latest/apidoc/ol.source.OSM.html).
Properties:
Name | Type | Attribute | Description |
type | "OSM" | ||
source | SourceConfig |
public OSMLayerConfig: g4uLayerOptions source
An OSM Layer (See http://openlayers.org/en/latest/apidoc/ol.source.OSM.html).
Properties:
Name | Type | Attribute | Description |
type | "OSM" | ||
source | SourceConfig |
public OnTopOptions: object source
Properties:
Name | Type | Attribute | Description |
findParentWindow | boolean |
|
public OverviewMapOptions: g4uControlOptions source
Properties:
Name | Type | Attribute | Description |
tipLabel | Localizable |
|
|
layerGroup | ol.layer.Group |
|
public PositionedElement: HideableElement source
public QuerySourceOptions: SourceServerVectorOptions source
Properties:
Name | Type | Attribute | Description |
queryValues | String[] |
|
public SearchControlOptions: g4uControlOptions source
Properties:
Name | Type | Attribute | Description |
amountDropdownEntries | number |
|
number of entries shown in the dropdown |
autocompleteStart | number |
|
count of letters after which the autocomplete starts. if set to -1 autocomplete is disabled |
autocompleteDelay | number |
|
|
slideDuration | number |
|
time it takes for the dropdown to slide down |
connector | SearchConnectorOptions | options of the connector to use. At the moment 'nominatim' is delivered within this module. |
|
style | StyleLike |
|
of the search results |
animated | boolean |
|
affects the move to the search results. |
placeholder | string |
|
text to be seen in the input field if the user has made no input yet |
ghostentry | string |
|
text to be seen in the dropdown if the autocomplete or search didn't find |
deactivateMobileSearch | string |
|
other possible values are 'never' and 'anyResult' |
public SearchViewOptions: Object source
Properties:
Name | Type | Attribute | Description |
style | StyleLike |
|
of the search results |
public ShiftableComposedControlOptions: ComposedControlOptions source
Properties:
Name | Type | Attribute | Description |
visibleControls | number | specifies amount visible controls |
public SilentGroupLayerConfig: g4uLayerOptions source
The silent group can display a group of layers which appears as a single in the layer selector.
Properties:
Name | Type | Attribute | Description |
type | "SilentGroup" | ||
layers | AnyLayerConfig[] |
public SilentGroupLayerConfig: g4uLayerOptions source
The silent group can display a group of layers which appears as a single in the layer selector.
Properties:
Name | Type | Attribute | Description |
type | "SilentGroup" | ||
layers | AnyLayerConfig[] |
public SingleMoveOptions: FitOptions source
public SourceConfig: Object source
A source config.
Properties:
Name | Type | Attribute | Description |
attribution | Localizable |
|
|
url | URLLike |
public SourceConfig: Object source
A source config.
Properties:
Name | Type | Attribute | Description |
attribution | Localizable |
|
|
url | URLLike |
public SourceServerVectorOptions: module:ol/source/Vector~Options source
Properties:
Name | Type | Attribute | Description |
type | string | the format to use |
|
url | URLLike | ||
urlProjection | module:ol/proj~ProjectionLike |
|
coordinates will be inserted into the url in this format. defaults to the sourceProjection |
defaultStyle | StyleLike |
|
a default style to fallback to |
extractStyles | boolean |
|
if styles should get extracted from the KML |
cache | boolean |
|
true, false for dataType 'script' and 'jsonp' |
refresh | number |
|
if set the layer will refresh itself in the specified time (in ms) |
localiser | L10N | ||
localised | boolean | ||
styling | Styling |
public StamenLayerConfig: g4uLayerOptions source
A stamen Layer (See http://openlayers.org/en/latest/apidoc/ol.source.Stamen.html).
Properties:
Name | Type | Attribute | Description |
type | "Stamen" | ||
source | SourceConfig |
public StamenLayerConfig: g4uLayerOptions source
A stamen Layer (See http://openlayers.org/en/latest/apidoc/ol.source.Stamen.html).
Properties:
Name | Type | Attribute | Description |
type | "Stamen" | ||
source | SourceConfig |
public StaticOverviewMapOptions: ControlOptions source
public StyleLike: string | StyleObject | ol.style.Style source
public TileWMSLayerConfig: g4uLayerOptions source
A WMS Layer which is called like a tiled layer. Good for performance. Check the {{WMSSSourceConfig}}.
Properties:
Name | Type | Attribute | Description |
type | "TileWMS" | ||
source | WMSSSourceConfig | ||
buttons | LayerButton[] |
|
If this is set, the layer appears as multiple buttons in the layerselector |
categoryButton | boolean |
|
If the buttons option is set, this options specifies if the buttons should appear as a category or not. |
public TileWMSLayerConfig: g4uLayerOptions source
A WMS Layer which is called like a tiled layer. Good for performance. Check the {{WMSSSourceConfig}}.
Properties:
Name | Type | Attribute | Description |
type | "TileWMS" | ||
source | WMSSSourceConfig | ||
buttons | LayerButton[] |
|
If this is set, the layer appears as multiple buttons in the layerselector |
categoryButton | boolean |
|
If the buttons option is set, this options specifies if the buttons should appear as a category or not. |
public URLLike: URLConfig | Localizable | URL source
public URLParameter: object source
Properties:
Name | Type | Attribute | Description |
keys | string[] | an array of keys this URLParameter reacts to. If any of this are contined in the URL the setToMap function of this parameter is called. |
|
setEvent | string |
|
if this event is thrown by the map the setToMap function will be called. |
SetToMapFunction | function |
|
this function should adjust the map state according to the given keys. |
GetFromMapFunction | function |
|
this function is called to get the needed values from the map to create the needed URL Parameter(s). This function needs to return an object with key value pairs representing the values to be written in the URL |
public VectorLayerOptions: object source
Properties:
Name | Type | Attribute | Description |
mutators | string[] |
|
list of mutators (changes featurepopup content) to use for this layer. |
public VectorSourceConfig: SourceConfig source
A vector source config.
Properties:
Name | Type | Attribute | Description |
loadingStrategy | string |
|
"BBOX" or "ALL" |
bboxRatio | number |
|
only applies if loadingStrategy is BBOX. If bigger than 1 this much more will be loaded around a bbox. |
localised | boolean |
|
if set to true the loader will send accept-language headers. |
public VectorSourceConfig: SourceConfig source
A vector source config.
Properties:
Name | Type | Attribute | Description |
loadingStrategy | string |
|
Either 'BBOX', 'ALL' or 'TILE' If BBOX or TILE the given url has to contain the parameters {minx}, {miny}, {maxx}, {maxy}. |
bboxRatio | number |
|
If set the bbox loading strategy will increase the load extent by this factor |
urlProjection | ProjectionLike |
|
coordinates will be inserted into the url in this format. defaults to the sourceProjection |
localised | boolean |
|
if set to true the loader will send accept-language headers. |
public WMSFeatureInfoOptions: object source
Properties:
Name | Type | Attribute | Description |
params | object<string, string> |
|
the params to be used with the GetFeatureInfo call. Needs to include INFO_FORMAT. If the layer does not use the buttons options than needs to include QUERY_LAYERS. |
checkable | boolean |
|
If the layer does not use the buttons options, this options specifies if an extra button on the layer button appears to toggle the feature info. |
checked | boolean |
|
If the layer does not use the buttons options and checkable is true, this option specifies if the feature info button appears activated or not. |
iframe | [number, number] |
|
load in iframe of this size |
public WMSLayerButtonConfig: ButtonConfig source
public WMSLayerConfig: g4uLayerOptions source
A WMS Layer. Check the {{WMSSSourceConfig}}.
Properties:
Name | Type | Attribute | Description |
type | "WMS" | ||
source | WMSSSourceConfig | ||
buttons | LayerButton[] |
|
If this is set, the layer appears as multiple buttons in th layerselector |
categoryButton | boolean |
|
If the buttons option is set, this options specifies if the buttons should appear as a category or not. |
public WMSLayerConfig: g4uLayerOptions source
A WMS Layer. Check the {{WMSSSourceConfig}}.
Properties:
Name | Type | Attribute | Description |
type | "WMS" | ||
source | WMSSSourceConfig | ||
buttons | LayerButton[] |
|
If this is set, the layer appears as multiple buttons in th layerselector |
categoryButton | boolean |
|
If the buttons option is set, this options specifies if the buttons should appear as a category or not. |
public WMSSSourceConfig: SourceConfig source
A wms source config.
Properties:
Name | Type | Attribute | Description |
params | object | required. needs to contain a |
|
featureInfo | WMSFeatureInfoOptions |
public WMTSLayerConfig: g4uLayerOptions source
A WMTS Layer. Check the {{WMTSSSourceConfig}}.
Properties:
Name | Type | Attribute | Description |
type | "WMTS" | ||
source | WMTSSSourceConfig |
public WMTSLayerConfig: g4uLayerOptions source
A WMTS Layer. Check the {{WMTSSSourceConfig}}.
Properties:
Name | Type | Attribute | Description |
type | "WMTS" | ||
source | WMTSSSourceConfig |
public WMTSSSourceConfig: SourceConfig source
A wmts source config. See https://openlayers.org/en/latest/apidoc/module-ol_source_WMTS-WMTS.html.
Properties:
Name | Type | Attribute | Description |
config | object | Needs to contain a |
|
autoConfig | boolean |
|
if autoConfig is set to true, guide4you makes a GetCapabilities-Request to automatically configure the WMTS. If not set a tileGrid has to be provided. See https://openlayers.org/en/latest/apidoc/module-ol_source_WMTS-WMTS.html. |
public WMTSSSourceConfig: SourceConfig source
A wmts source config. See https://openlayers.org/en/latest/apidoc/module-ol_source_WMTS-WMTS.html.
Properties:
Name | Type | Attribute | Description |
config | object | Needs to contain a |
|
autoConfig | boolean |
|
if autoConfig is set to true, guide4you makes a GetCapabilities-Request to automatically configure the WMTS. If not set a tileGrid has to be provided. See https://openlayers.org/en/latest/apidoc/module-ol_source_WMTS-WMTS.html. |
public WindowDecoratorOptions: g4uControlOptions source
Properties:
Name | Type | Attribute | Description |
component | Control |
public WindowOptions: object source
Properties:
Name | Type | Attribute | Description |
parentClassName | string | an additional html class name to use |
|
draggable | boolean |
|
|
id | string |
|
an html id for the outer window element |
className | string |
|
an alternative html class name to use instead of 'g4u-window', not recommended |
map | G4UMap |
|
the map the window should be shown on. The viewport will be set as the context of the window |
$context | jQuery |
|
context the window is shown in |
visible | boolean |
|
the visibility of the window on start up |
fixedPosition | boolean |
|
if the window is movable or not |
public XYZLayerConfig: g4uLayerOptions source
A XYZ Layer (See http://openlayers.org/en/latest/apidoc/ol.source.XYZ.html).
Properties:
Name | Type | Attribute | Description |
type | "XYZ" | ||
source | SourceConfig |
public XYZLayerConfig: g4uLayerOptions source
A XYZ Layer (See http://openlayers.org/en/latest/apidoc/ol.source.XYZ.html).
Properties:
Name | Type | Attribute | Description |
type | "XYZ" | ||
source | SourceConfig |
public ZoomOptions: g4uControlOptions source
Properties:
Name | Type | Attribute | Description |
zoomInTipLabel | Localizable |
|
|
zoomOutTipLabel | Localizable |
|
public g4uControlOptions: object source
Properties:
Name | Type | Attribute | Description |
controlType | string |
|
the type of the control. If not given the name of the control is used |
importance | number |
|
how important the control is on the map. the higher this value is, the longer it will be kept on the map if the viewport gets smaller. |
activeGroup | string |
|
if controls are in the same active group only one of them can be active at the same time |
className | string |
|
|
element | HTMLElement | ||
localiser | L10N | the localiser to use by the control. |
|
controlName | string | the name of the control. |
|
singleButton | boolean |
|
if the control only consists of one button |
target | String | HTMLElement | jQuery |
|
|
title | Localizable |
|
not used by every control |
tipLabel | Localizable |
|
not used by every control |
float | Float |
|
|
windowed | boolean |
|
whether the control resides inside a window or not |
public g4uLayerOptions: Object source
Common config for all layers.
Properties:
Name | Type | Attribute | Description |
type | LayerType | The layer type. |
|
id | string | number | unique in the whole config |
|
title | Localizable |
|
|
available | Boolean |
|
if set to false, the layer will not appear on the map or the layer selector. |
availableMobile | Boolean |
|
overwrites available in mobile mode |
visible | Boolean |
|
If set to |
alwaysVisible | Boolean |
|
overwrites visible, available and mobileAvailable |
minZoom | number |
|
the minimal zoom from where the layer should be enabled |
maxZoom | number |
|
the minimal zoom from where the layer should be enabled |
style | StyleLike |
|
public g4uLayerOptions: Object source
Common config for all layers.
Properties:
Name | Type | Attribute | Description |
type | LayerType | The layer type. |
|
id | string | number | unique in the whole config |
|
title | Localizable |
|
|
available | Boolean |
|
if set to false, the layer will not appear on the map or the layer selector. |
availableMobile | Boolean |
|
overwrites available in mobile mode |
visible | Boolean |
|
If set to |
alwaysVisible | Boolean |
|
overwrites visible, available and mobileAvailable |
minZoom | number |
|
the minimal zoom from where the layer should be enabled |
maxZoom | number |
|
the minimal zoom from where the layer should be enabled |
style | StyleLike |
|
public g4uViewOptions: Object source
Properties:
Name | Type | Attribute | Description |
center | ol.Coordinate | the initial center of the map |
|
extent | ol.Extent |
|
the max extent the center can lay in |
resolution | number |
|
|
zoom | number |
|
|
rotation | number |
|
|
fit | number |
|
an extent to fit the map initialy to, overwrites center settings |
projection | ol.ProjectionLike |
|