Lëtzebuergesch (lu)
Français (fr)
Deutsch (de)
English (en)
Portals
Lëtzebuergesch (lu)
Français (fr)
Deutsch (de)
English (en)
Portals
The GeoAPI, as it is based on OpenLayers, has two types of map layers: base layers and overlays. This difference controls several aspects of how you interact with the GeoAPI.
Base Layers are mutually exclusive layers, meaning only one can be enabled at any iven time. Base Layers always display below overlay layers. Already there is always the orthophoto as background layer (can this be turned off ?, haven’t found out how yet ? ) Possible background layers (bg_layer):
Non base layers – sometimes called overlays – contain supplemental layers of information and multiple overlays can be enabled at a time. These layers can be switched on and off independantly and thus can be combined. Items are named inconsistently. Worth thinking about namespacing to group items, logically according to groups if possible. Todo : Create list of base and thematic layers, with more metadata.
To get a human readable list of layers available through the GeoAPI, go to the following page Layers listing
You can add GeoAPI layers to the map using the following code:
... geo.addLayerToMap('roads'); ...
Once the layer is added, you can get access to the OpenLayers Layer Object for that layer using the getLayersBy() method, using the layername property. For example to set the visibility:
... geo.map.getLayersBy('layername','roads')[0].setVisibility(false); ...