Load KML onto map This sample shows how to load KML or KMZ files onto the map. The spatial IO module is used to parse the features in KML/KMZ file into GeoJSON. KML ground overlays are returned as either an ImageLayer or an OgcMapLayer depending on if the ground overlay is a static image or a WMS service. Custom images for icons are also captured and need to be added to the map resources before loading the features on the map.