void encodeGroundOverlay(Folder container, Layer layer, int drawOrder, Envelope box) { GroundOverlay go = container.createAndAddGroundOverlay(); go.setDrawOrder(drawOrder); Icon icon = go.createAndSetIcon(); String href = WMSRequests.getGetMapUrl(request, layer, 0, box, new String[] { "width", "256", "height", "256", "format", "image/png", "transparent", "true" }); icon.setHref(href); LOGGER.fine(href); // make sure the ground overlay disappears as the lower tiles activate addRegion(go, box, 128, 512); LatLonBox llBox = go.createAndSetLatLonBox(); setEnvelope(box, llBox); }
icon.setViewBoundScale(0.75); LatLonBox gobox = go.createAndSetLatLonBox(); gobox.setEast(bbox.getMinX()); gobox.setWest(bbox.getMaxX());
LatLonBox gobox = go.createAndSetLatLonBox(); gobox.setEast(box.getMinX()); gobox.setWest(box.getMaxX());