...
Provides a list of all map engines configured and available on Weave.
Info | ||
---|---|---|
| ||
Example 1
...
Code Block | ||||
---|---|---|---|---|
| ||||
{ "success": true, "mapengines": [ {"id": "mapengine.upload"}, { "acetate": false, "selection": false, "legend": true, "format": "image/png32", "id": "selection.area_details", "override": {"entity": { "id": "local_government_area", "content": "sld/LGA.sld" }}, "orderCheck": false }, {"id": "google.streets"}, { "acetate": false, "selection": false, "legend": true, "format": "image/png32", "id": "selection.main", "override": {"polygon": { "stroke-width": 1, "fill-color": "red", "fill-opacity": 0.25, "stroke-color": "red" }}, "orderCheck": false }, { "acetate": false, "selection": false, "crs": "EPSG:3857", "tokens": {"token": { "name": "ITEMFONTSIZE", "value": 11 }}, "id": "nsw_imagery_wms", "url": "http://maps.six.nsw.gov.au/arcgis/services/public/NSW_Imagery/MapServer/WMSServer?VERSION=1.3.0" }, { "acetate": false, "selection": false, "legend": true, "format": "image/png32", "id": "selection.property_details", "override": {"entity": { "id": "property", "content": "sld/Property.sld" }}, "orderCheck": false }, { "acetate": false, "id": "nswdpe.ov", "selection": false, "crs": "EPSG:3857", "url": "http://192.168.2.146:80/cgi-bin/qgis_mapserv.fcgi?map=/data/maps/nswdpe_ov.qgs&VERSION=1.3.0" }, { "acetate": false, "selection": false, "crs": "EPSG:3857", "scales": {"scale": [ { "maxScale": 1, "minScale": 1, "layer": "development_application" }, { "maxScale": 1, "minScale": 1, "layer": "major_projects_jobs_lap" }, { "maxScale": 1, "minScale": 1, "layer": "major_projects_sites_lap" } ]}, "tokens": {"token": { "name": "ITEMFONTSIZE", "value": 11 }}, "id": "nswdpe", "url": "http://192.168.2.146:80/cgi-bin/qgis_mapserv.fcgi?map=/data/maps/nswdpe.qgs&VERSION=1.3.0" } ] } |
Anchor | ||||
---|---|---|---|---|
|
Provides a list of all map layers available for a given map engine.
...
layers - comma separated list of strings - map layers layer identifiers as per configuration (Refer to /map/mapengines/{mapengineid}/layers )
styles - comma separated list of strings - styles as per map layer configuration
...
Code Block | ||||
---|---|---|---|---|
| ||||
curl -X POST --header 'Content-Type: application/json' --header 'Accept: applicationimage/jsonpng' --data '{"map.descriptions":[{"opacity":1,"layers":"0","map.engine":"google.streets"}, {"opacity":1,"layers":"addresspoi","map.engine":"nswdpe"},{"opacity":1,"layers":"_selection.all","map.engine":"selection.main"}],"selections":[{"entityid":"property","featureids":["2035960_Unit_1_1_Market_Street__11_Sydney_DP777449"]}]}' 'http://localhost:8080/weave/services/v1/map/show?crs=EPSG%3A3857&minx=16831751.916958902&miny=-4011871.179336485&maxx=16832450.599170577&maxy=-4011360.603874112&scale=288895.277144&dpi=96&width=960&height=540&opacity=1&imagetype=image%2Fpng' > map_1_layer.png |
...