swing - Remove Default WMS Layer From WorldWind Java -
how remove default wms layer basic worldwind java application? if remove so, application still trying reach public worldwind wms servers:
import gov.nasa.worldwind.model; model testmodel = new basicmodel(); testmodel.getlayers().clear(); // makes default geo invisible, still queries server in background. // add own layers, here
oh wow - reminding me old love !
however, regarding question: if want work offline, use property gov.nasa.worldwind.avkey.offlinemode (answer found here)
if want remove individual layers, take @ config folder. config/worlwind.layers.xml contains layer config, comment out layer not want use. folder resides in worldwind.jar when using standard build, can specify different location - take @ configuration class on how that.
there interesting file there, datafilestore.xml, lets define cache location. if fill cache area of interest while being online, data used when in offline mode. once there cachepacks available seem these not available anymore.
i think there tool select area , download data cache offline mode.
have fun !
Comments
Post a Comment