zahidsw / geoxml3

Automatically exported from code.google.com/p/geoxml3
0 stars 0 forks source link

Info on AfterParse #50

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?
I want to parse a kmldocument by using the parse method;
What i want is not let the parser showing any info on the map;
i want use the AfterParse callback so that i can create my Markers  by myself; 
i thought it was enough to set "map:null" while instantiating the object 
geoXML3.parser but it seems mandatory hence  i am not able to suppress the 
markers generated autmatically by the parse method
Basically i am following the example "Use Case 3: Standalone KML Parser" but it 
 does not work; am i missin something

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by mic68.sa...@gmail.com on 4 Feb 2012 at 8:56

GoogleCodeExporter commented 9 years ago
More detail is needed.
Please provide a link to an example that shows the problem.

Original comment by geocodezip on 4 Feb 2012 at 9:31

GoogleCodeExporter commented 9 years ago

Original comment by geocodezip on 4 Feb 2012 at 9:32

GoogleCodeExporter commented 9 years ago
the link is http://www.itinerarialpinistici.com/testkml.aspx
the js version i am using are trunk ones;

what happens is that in my useTheData callback the list of the placemarks is 0;
Hope you can help me 
Regards
Michele

Original comment by mic68.sa...@gmail.com on 5 Feb 2012 at 9:06

GoogleCodeExporter commented 9 years ago
please use the "polys" branch, your kml includes a polyline, the trunk is 
fairly old and was developed before polygons and polylines were added to the 
API.  Support for polylines and polygons is in the polys branch.

http://www.geocodezip.com/geoxml3_test/v3_geoxml3_kmltest_linktoB.html?filename=
http://www.geocodezip.com/xmlProxy060215.asp?http://www.itinerarialpinistici.com
/uploadedkml/silea-casale-cendon.kml

Original comment by geocodezip on 5 Feb 2012 at 2:29

GoogleCodeExporter commented 9 years ago
There does seem to be some issue with either your server or my proxy that makes 
that link unreliable, this works much better:

http://www.geocodezip.com/geoxml3_test/v3_geoxml3_kmltest_linktoB.html?filename=
http://www.geocodezip.com/geoxml3_test/itinerarialpinistici_com_silea-casale-cen
don_kml.xml

Original comment by geocodezip on 5 Feb 2012 at 3:16

GoogleCodeExporter commented 9 years ago
I have changed the link to new version of js;
but the problem is the same;invoking the parser passing property " afterParse: 
useTheData" but omitting the  map property  i got the js error:

Errore: parserOptions.map is undefined
File sorgente: http://geoxml3.googlecode.com/svn/branches/polys/geoxml3.js
Riga: 653

thank you 
Michele

Original comment by mic68.sa...@gmail.com on 5 Feb 2012 at 6:17

GoogleCodeExporter commented 9 years ago
Please provide a link to an example that shows the problem.

Original comment by geocodezip on 5 Feb 2012 at 7:36

GoogleCodeExporter commented 9 years ago
that is the same:

http://www.itinerarialpinistici.com/testkml.aspx

Original comment by mic68.sa...@gmail.com on 5 Feb 2012 at 7:38

GoogleCodeExporter commented 9 years ago
How do I reproduce the error?

The error I get on that page (at least in Chrome) is:
Uncaught TypeError: Cannot call method 'fitBounds' of undefined

Try setting "zoom" to false:
http://www.geocodezip.com/geoxml3_test/www_itinerarialpinistici_com_testkmlA.htm
l

Original comment by geocodezip on 5 Feb 2012 at 8:28

GoogleCodeExporter commented 9 years ago
to reproduce you have to check the option "Silea-Cendon";
however, adding "zoom:false" it works and i can omit the map;

thank you very much
Regards
Michele

Original comment by mic68.sa...@gmail.com on 5 Feb 2012 at 8:49

GoogleCodeExporter commented 9 years ago
is there any documentation on how the json format looks like in case there is a 
polyline ?

Original comment by mic68.sa...@gmail.com on 5 Feb 2012 at 9:44

GoogleCodeExporter commented 9 years ago

Original comment by geocodezip on 6 Feb 2012 at 1:01