Announcement

Collapse
No announcement yet.

My WMS layer won't load lower level tiles

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • My WMS layer won't load lower level tiles

    Hi,

    I have a WorldWind globe in my Android app and I have added a WMS layer like this:

    WmsLayerConfig config = new WmsLayerConfig();
    config.serviceAddress = "https://basemap.nationalmap.gov/arcgis/services/USGSTopo/MapServer/WMSServer?service=WMS";
    config.wmsVersion = "1.3.0";
    config.layerNames = "0";
    WmsLayer wmsLayer = new WmsLayer(new Sector().setFullSphere(), 1e3, config);
    wwd.getLayers().addLayer(wmsLayer);

    After I zoom in a little, it stops loading new map tiles and just blurs if I try to zoom more. Any idea how I might fix this?

    Click image for larger version  Name:	Screen_20191106-094525.png Views:	2 Size:	117.3 KB ID:	159287
    Attached Files

  • #2
    I figured out my problem. The issue was that I was passing in 1000 (1e3) as the metersPerPixel parameter, which was way too high. I lowered it to 1 and it works now. The 1e3 was copied over from the only example I could find for creating a WMS Layer without realizing how it works.

    Comment

    Working...
    X