mGroundOverlays.put(KmlFeatureParser.createGroundOverlay(mParser), null);
} else if (parser.getName().equals(GROUND_OVERLAY)) { containerGroundOverlays .put(KmlFeatureParser.createGroundOverlay(parser), null);
public void testGroundOverlay() throws Exception { XmlPullParser xmlPullParser = createParser(R.raw.amu_ground_overlay); KmlGroundOverlay groundOverlay = KmlFeatureParser.createGroundOverlay(xmlPullParser); assertNotNull(groundOverlay); assertEquals(groundOverlay.getProperty("name"), "Sample Ground Overlay"); assertNotNull(groundOverlay.getImageUrl()); assertEquals(groundOverlay.getGroundOverlayOptions().getZIndex(), 99.0f); assertTrue(groundOverlay.getGroundOverlayOptions().isVisible()); assertNotNull(groundOverlay.getLatLngBox()); xmlPullParser = createParser(R.raw.amu_ground_overlay_color); groundOverlay = KmlFeatureParser.createGroundOverlay(xmlPullParser); assertNotNull(groundOverlay); }