1. A concise explanation of the problem you’re experiencing.
I’m trying to overlay U.S. State Borders and Names layers onto the Bing Maps base layer. I’m pulling both layers from a public WMS service using WebMapServiceImageryProvider(). The borders are showing up fine, albeit a bit thick, but my bigger issue is the labels/names are showing up multiple times for each state.
The pic below shows my results in Cesium and my results in QGIS. Ultimately I would like it to look like QGIS.
I also included my code in the next section.
Thanks,
AQ
2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.
var viewer = new Cesium.Viewer(‘cesiumContainer’, {
imageryProvider: Cesium.createWorldImagery(),
animation: false,
timeline: false,
fullscreenButton: false,
navigationHelpButton: false,
navigationInstructionsInitiallyVisible: false,
homeButton: false,
sceneModePicker: false,
requestRenderMode: true
});
var url = “https://carto.nationalmap.gov/arcgis/services/govunits/MapServer/WMSServer”;
//state borders
viewer.imageryLayers.add(
new Cesium.ImageryLayer(
new Cesium.WebMapServiceImageryProvider({
url: url,
layers: ‘22,2’,
parameters: {
version: ‘1.3.0’,
format: ‘image/png’,
transparent: true
},
maximumLevel: 16,
enablePickFeatures: false
}), {
minimumTerrainLevel: 3 //https://github.com/AnalyticalGraphicsInc/cesium/issues/6564
})
);
3. Context. Why do you need to do this? We might know a better way to accomplish your goal.
Trying to make the map look better.
4. The Cesium version you’re using, your operating system and browser.
Cesium 1.59
Chrome Version 75.0.3770.100 (Official Build) (64-bit)