javascript - Add info window to placemarks -


i using geoxml3 in order parse kml files. question how able extract description kml file each placemark , place in info window?

till following code:

function displaykml() {         initialize();         parser = new geoxml3.parser({             map: map,             processstyles: true,             createmarker: addmymarker,             createoverlay: addmyoverlay         });                   parser.parse("uploads/" + document.getelementbyid('<%= text2.clientid %>').value);      }       function addmymarker(placemark) {         // marker handling code goes here          parser.createmarker(placemark);        }        function addmyoverlay(groundoverlay) {         // overlay handling code goes here         parser.createoverlay(groundoverlay);       } 

geoxml3 creates infowindows placemarks default in default createxxx functions. if override them have create infowindows in version if want them. start copying code in default function, changing appropriately. looks using default function, not sure behavior seeing , why doing that. groundoverlays don't have infowindows, none of examples kml files have posted far contain "name" or "description" tags (but open infowindows me).

http://www.geocodezip.com/geoxml3_test/v3_geoxml3_kmltest_linktob.html?filename=http://www.geocodezip.com/geoxml3_test/so_it_info_kmlb.xml

http://www.geocodezip.com/geoxml3_test/v3_geoxml3_kmltest_linktob.html?filename=http://www.geocodezip.com/geoxml3_test/so_emptykmla.xml


Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -