kamaltilak / geoxml3

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

hideDocument throws error #73

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create an instance of geoXML3.parser
2. Call geoXML3.parser.hideDocument passing doc object

What is the expected output? What do you see instead?
Hides all the markers and overlays.

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

Please provide any additional information below.
Fix for the issue is to change line 76 on geoxml3.js
from
this.markers[i].set_visible(false);
to
doc.markers[i].set_visible(false);

Original issue reported on code.google.com by vigne...@strumsoft.com on 1 Nov 2012 at 9:18

GoogleCodeExporter commented 9 years ago
When i fixed that, it thorwed another error
TypeError: Object #<V> has no method 'set_visible'

I found that Google Maps V3 changed reference to set visible.
Fix for this, change line 76 and 87
from
set_visible
to
setVisible

Original comment by vigne...@strumsoft.com on 1 Nov 2012 at 9:26

GoogleCodeExporter commented 9 years ago
What version of the code are you using?  The polys and kmz branches are the 
most up-to-date and support polygons and polylines.  The trunk is old.

Original comment by geocodezip on 1 Nov 2012 at 1:24

GoogleCodeExporter commented 9 years ago

Original comment by geocodezip on 1 Nov 2012 at 1:25

GoogleCodeExporter commented 9 years ago
Sorry. I was using trunk.

Original comment by vigne...@strumsoft.com on 1 Nov 2012 at 1:44

GoogleCodeExporter commented 9 years ago
Trunk is old and not currently maintained

Original comment by geocodezip on 1 Nov 2012 at 2:11