IlvKMLReader
instance
from the path of the KML catalog:String KMLpath = " C:/maps/KML/places.kmz"; IlvKMLReader reader = new IlvKMLReader(KMLpath);
IlvFeatureRenderer renderer = new IlvDefaultFeatureRenderer();
IlvMapFeature feature = reader.getNextFeature(); while(feature != null) { // Render map feature into the graphic object. IlvGraphic graphic = renderer.makeGraphic(feature,null); // Add this object on the first layer of the manager. manager.addObject(graphic, 0, false); feature = reader.getNextFeature(); }
IlvKMLDataSource
:String KMLpath = "C:/maps/KML_0606_ed8/KMLT"; IlvKMLDataSource source = new IlvKMLDataSource(KMLpath);
source.setManager(getView().getManager());
source.start();