KMZ file not showing by geoxml3

294 views Asked by At

I am using geoxml3 to parse my Kmz files but its not doing anything i have downloaded the script

**https://github.com/geocodezip/geoxml3**

from here. I have an input field where user can upload kmz file when file is uploaded and presses button only map shows nothing else :

 <input class="button-d" onclick="initMap2()" type="submit" value="Embed Kmz" style="float: right" />

<input type="file" id="file" name="file">

script.js

var input=document.getElementById("file").files[0]
    map = new google.maps.Map(document.getElementById('map'), {
        center: new google.maps.LatLng(-19.257753, 146.823688),
        zoom: 2,
        mapTypeId: 'terrain'
    });
    console.log(input)//console for file is successful 
    var geoXml = new geoXML3.parser({map: map, singleInfoWindow: true});
    geoXml.parse(input)
    //geoXml.parse('C:/Users/Administrator/Downloads/example.kmz  
    //even the above commented statement doesn't work
0

There are 0 answers