fititnt / geoxml3

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

suppressInfoWindows option like google.maps.KmlLayer not supported #31

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. load kml, but popup of infowindow is suppressed on clicking of polyline

What is the expected output? What do you see instead?
no reaction

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

Please provide any additional information below.

I managed two ways to suppress info windows, but they might not be the 
preferred options:

1) afterParse event
function myMap_afterParse(doc) {
      //alert('finished');
      var geoXmlDoc = doc[0];
      for (var i = 0; i < geoXmlDoc.gpolygons.length; i++) {
        // remove info window
        geoXmlDoc.gpolygons[i].infoWindow = null;
      }
    }

and more elegant
2) setting parserOption
 infoWindowOptions : {content : null}

Original issue reported on code.google.com by stefan.r...@gmail.com on 16 Jun 2011 at 3:12

GoogleCodeExporter commented 8 years ago
Seems like a reasonable request. As a work around exists, I will look into it 
as time permits (unless you have a suggested implementation).

Original comment by geocodezip on 17 Jun 2011 at 8:00

GoogleCodeExporter commented 8 years ago
implemented in revision 57

Original comment by geocodezip on 21 Jun 2011 at 7:15

GoogleCodeExporter commented 8 years ago
Test case:
http://www.geocodezip.com/geoxml3_test/geoxml3_test_mtrmtrip_polygon_suppressInf
oWindows.html

Original comment by geocodezip on 21 Jun 2011 at 7:16

GoogleCodeExporter commented 8 years ago
Looking for feedback on 2 things:
1. Should suppressInfoWindows suppress tooltips also?  Is that desired/needed?  
If it is needed would a separate suppressTooltips option be desirable?  (not 
sure that is a good idea)
2. Is there the need/desire to control this separately for markers, polyline 
and polygons?

Please create enhancement requests if either of the above is desired and they 
will be considered.

Original comment by geocodezip on 21 Jun 2011 at 12:23