przezdziecki / geoxml3

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

showDocument and hideDocument in polys branch no longer work #45

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create simple map page and parse KML file with only placemarks (not polygons 
or polylines)
2. Invoke parser.showDocument() or parser.hideDocument()

What is the expected output? What do you see instead?
Expectation is that invocation of showDocument or hideDocument when specifying 
document would invoke marker setVisible method.  Because there is no longer a 
markers array at top level of document object, layers with only simple markers 
do not show or hide

What version of the product are you using? On what operating system?
head of polys branch (rev r62)

Please provide any additional information below.
I believe this change will work:

    if (!!doc.placemarks) {
      for (i = 0; i < doc.placemarks.length; i++) {
        if (!!doc.placemarks[i].marker) doc.placemarks[i].marker.setVisible(true);
      }
    }

Original issue reported on code.google.com by fami...@gmail.com on 19 Dec 2011 at 9:52

GoogleCodeExporter commented 9 years ago
works on these pages:
http://www.geocodezip.com/geoxml3_test/geoxml3_test.html
http://www.geocodezip.com/geoxml3_test/v3_geoxml3_markers_test.html
http://www.geocodezip.com/geoxml3_test/geoxml3_test_mtrmtrip.html

can you provide a link to an example where it doesn't?

Original comment by geocodezip on 20 Dec 2011 at 4:21

GoogleCodeExporter commented 9 years ago
You are correct.  Some of the functionality that I was trying to implement must 
have meant that I was not seeing that geoxml3 is working properly.  I did make 
an example:

http://www.carolinamantis.com/issue45/

Original comment by fami...@gmail.com on 20 Dec 2011 at 1:56

GoogleCodeExporter commented 9 years ago

Original comment by geocodezip on 21 Dec 2011 at 12:54