I am trying to add this wms server
http://sigmine.dnpm.gov.br/arcgis/services/extra/dados_dnpm/MapServer/WMSServer?request=GetCapabilities&service=WMS
with svg imagery. It works ok with png, but when I change the format to svg+xml the developer tools console returns Failed to obtain image tile. I’m adding the wms server to Cesium using these options:
layers.addImageryProvider(new Cesium.WebMapServiceImageryProvider({
url: 'http://sigmine.dnpm.gov.br/arcgis/services/extra/dados_dnpm/MapServer/WMSServer?’,
layers: ‘6’,
getFeatureInfoParameters: {
info_format: ‘text/html’
},
parameters: {
service: “WMS”,
version: “1.1.1”,
request: “GetMap”,
styles: “”,
enablePickFeatures: true,
format: “image/svg+xml”,
transparent: “true”
}
}));
The server works in svg mode in QGIS. I used fiddler to sniff QGIS's requests to try to compare with Cesium's:
http://sigmine.dnpm.gov.br/arcgis/services/extra/dados_dnpm/MapServer/WMSServer?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=-5.742838794058115148,-46.04080211883795215,-4.888609508661574843,-44.74422999465372897&CRS=EPSG:4326&WIDTH=894&HEIGHT=589&LAYERS=6&STYLES=&FORMAT=image/svg%2Bxml&DPI=96&MAP_RESOLUTION=96&FORMAT_OPTIONS=dpi:96&TRANSPARENT=TRUE
Am I missing a parameter, or something like that? Does Cesium support svg tiles from a WMS server?
As said before, it works fine with png. Should I just use png, or is there any real advantage in using svg tiles?
I'm using cesium 1.36.0, node 6.11.1 and electron 1.6.11.