The main layers are identified by the following codes :
| Layer name | Layer title |
|---|---|
| ADMINISTRATIVEUNITS.BOUNDARIES | Administrative boundaries |
| BUILDINGS.BUILDINGS | Buildings |
| CADASTRALPARCELS.PARCELS | Cadastral parcels |
| ELEVATION.SLOPES | Colored DTM |
| GEOGRAPHICALGRIDSYSTEMS.MAPS | Scanned maps whatever the map scale is (out of INSPIRE' scope) |
| GEOGRAPHICALNAMES.NAMES | Geographical names |
| HYDROGRAPHY.HYDROGRAPHY | Hydrography networks |
| ORTHOIMAGERY.ORTHOPHOTOS | Ortho-photographies whatever the resolution is |
| ELEVATION.LEVEL0 | Sea level 0 |
| TRANSPORTNETWORKS.RAILWAYS | Railway networks |
| TRANSPORTNETWORKS.ROADS | Road networks |
| TRANSPORTNETWORKS.RUNWAYS | Airports runways |
| UTILITYANDGOVERNMENTALSERVICES.ALL | Governmental buildings |
The search engine resources are identified by the following codes :
| Layer name | Layer title |
|---|---|
| ADDRESSES.CROSSINGS | Crossing begin-end addresses |
| TOPONYMS.ALL | Geographical names |
These codes are based on the European INSPIRE Directive, Annexes I to III themes names. Within the INSPIRE Directive implementation, the names will be standardized and the API will provide services using these harmonized names. The objective is to have homogeneous layer names throughout Europe in order to ease geographical data services access.
Layer names are added/updated with the Geoportal's updates. To be informed about available layers, one have to get the capabilities of the relevant services (for instance, WMS-C capabilities are there, and WMS capabilities are there). These names are prefixed by the territory code for WMS layers.
These names are transported with the license key. Depending on your license, not all the names are available.
The API gives or will give access to the following types of services :
They can be retrieved through the instance.allowedGeoportalLayers array in the Javascript API. The following code snippet shows how to display the maps layers without transparency and not displaying the orthophotos :
if (myMap.getMap().allowedGeoportalLayers) {
for (var i= 0; i<myMap.getMap().allowedGeoportalLayers.length; i++) {
var overloaded_options= null;
var layer= myMap.getMap().allowedGeoportalLayers[i];
if (layer.match(/^GEOGRAPHICALGRIDSYSTEMS.MAPS/)) {// maps
overloaded_options= {
opacity: 1.0
};
} else if (layer.match(/^ORTHOIMAGERY.ORTHOPHOTOS/)) {// orthophotos
overloaded_options= {
visibility: false
};
}
myMap.addGeoportalLayer(layer,overloaded_options);
}
}Have a look at the Javascript documentation Catalogue.js to get the default values of opacity, visibility for the layers.
Starting with 1.0beta4 version, layers names are suffixed by ':' followed by the service's type.
The Geoportal API supports 21 different zoom levels, amongst which 12 are currently activated. Zoom levels are managed through the setCenter*() API's functions. The following table shows for the activated zoom levels their mapping with scales :
| Zoom | Scale | Map's projection |
|---|---|---|
| 0 | World | IGNF:MILLER |
| 1 | World | IGNF:MILLER |
| 2 | World | IGNF:MILLER |
| 3 | World | IGNF:MILLER |
| 4 | World | IGNF:MILLER |
| 5 | State | IGNF:GEOPORTAL* |
| 6 | State | IGNF:GEOPORTAL* |
| 7 | State | IGNF:GEOPORTAL* |
| 8 | Country | IGNF:GEOPORTAL* |
| 9 | Country | IGNF:GEOPORTAL* |
| 10 | Country | IGNF:GEOPORTAL* |
| 11 | Country | IGNF:GEOPORTAL* |
| 12 | Town | IGNF:GEOPORTAL* |
| 13 | Town | IGNF:GEOPORTAL* |
| 14 | Town | IGNF:GEOPORTAL* |
| 15 | Town | IGNF:GEOPORTAL* |
| 16 | Street | IGNF:GEOPORTAL* |
| 17 | Street | IGNF:GEOPORTAL* |
| 18 | Street | IGNF:GEOPORTAL* |
| 19 | Street | IGNF:GEOPORTAL* |
| 20 | House | IGNF:GEOPORTAL* |
The IGNF:GEOPORTAL* projections are compatible with plate-carre projections. The Geoportail API stretches/squizes the images to allow overlaying (OpenLayers extension by IGNF). Unofficial EPSG codes can be used in remplacement of IGNF codes, more information there.
For any layers that can be added to the map, the API exposes a mechanism for advertising the layer's originator. Where OpenLayers uses the attribution parameter, the API use an array of originator with the following properties for each originator object :