Application =========== List layer types ---------------- .. http:get:: /maps_api/v2/server/layer_types This call will return a list of valid layer types with translated layer labels. **Example request:** .. sourcecode:: http GET /maps_api/v2/server/layer_types HTTP/1.1 Host: planviewer.nl Accept: application/json **Example response:** .. sourcecode:: json { "types": { "empty": "Leeg (Witte achtergrond)", "osm": "OSM (OpenStreetMap)", "aerial": "Luchtfoto", "dkk": "Kadastrale kaart perceelsgrenzen", "dkk_vector": "Kadastrale kaart perceelsgrenzen als vector", "bag": "BAG (Basisregistraties Adressen en Gebouwen)", "bag_vector": "BAG (Basisregistraties Adressen en Gebouwen) als vector", "imro": "Ruimtelijke plannen", "outline": "Dossiergrens", "proxy": "Laag van andere viewer", "wms": "WMS (Web Map Service)", "wmts": "WMTS (Web Map Tile Service)", "wfs": "WFS (Web Feature Service)", "vector": "Vectorlaag (Data-upload en\/of zelf tekenen)", "imrogml": "IMRO GML laag (data-upload)" }, "locale": "nl" } List vector source types ------------------------ .. http:get:: /maps_api/v2/server/vector_source_types This call will return a list of valid vector source layer types with translated type labels. **Example request:** .. sourcecode:: http GET /maps_api/v2/server/vector_source_types HTTP/1.1 Host: planviewer.nl Accept: application/json **Example response:** .. sourcecode:: json { "types": { "polygon": "Polygonen", "line": "Lijnen", "point": "Punten" }, "locale": "nl" } List feature export types ------------------------- .. http:get:: /maps_api/v2/server/feature_export_types This call will return a list of possible file formats for exporting features, they will have translated format labels as values. **Example request:** .. sourcecode:: http GET /maps_api/v2/server/feature_export_types HTTP/1.1 Host: planviewer.nl Accept: application/json **Example response:** .. sourcecode:: json { "types": { "csv": "CSV", "geojson": "GeoJSON", "gml": "GML (XML)" }, "locale": "nl" } List image export types ------------------------- .. http:get:: /maps_api/v2/server/image_export_types This call will return a list of possible image formats for generating a snapshot, they will have translated format labels as values. **Example request:** .. sourcecode:: http GET /maps_api/v2/server/image_export_types HTTP/1.1 Host: planviewer.nl Accept: application/json **Example response:** .. sourcecode:: json { "types": { "png": "PNG", "jpg": "JPG" }, "locale": "nl" } List field mapping types ------------------------ .. http:get:: /maps_api/v2/server/mapping_types This call will return a list of possible mapping types with translations. **Example request:** .. sourcecode:: http GET /maps_api/v2/server/mapping_types HTTP/1.1 Host: planviewer.nl Accept: application/json **Example response:** .. sourcecode:: json { "types": { "string": "Tekst", "loose_enum": "Keuze" }, "locale": "nl" } Upload the application SLD -------------------------- .. http:post:: /maps_api/v2/server/sld/upload Upload a new SLD at application level. You may either use a JSON structure for the body, or use a request with a ``multipart/form-data`` body. :