public void setLayerType(String type) { mLayerType = type; if (mService == null) { } else if (mLayerType.equals("NEXRAD")) { mService.getRadarLayer().parse(); } else if (mLayerType.equals("METAR")) { mService.getMetarLayer().parse(); } invalidate(); }