Geoxml3 Shows Unable to retrieve Kml file

235 views Asked by At

i went through lots of answers posted regarding the below question. i wanted to retrieve the kml file from the local and so i used geoxml

var myParser = new geoXML3.parser({ map: map });

myParser.parse('indiastatev2.kml');

here is the code which i am trying to make work my file is stored here in this folder here

i am not able to get the file path to pass in here are the solution which i tried doing it in different ways

myParser.parse('~/Content/KmlData/indiastatev2.kml');
myParser.parse('../../Content/KmlData/indiastatev2.kml');

none of them is working

this is what i am getting each time error

here is my script this

i had already tried putting down the kml file in same folder but it didnt work

please suggest me something to make it work

0

There are 0 answers