danwallie

KMLLayer - override click behavior

Discussion created by danwallie on Apr 26, 2013
Latest reply on Apr 30, 2013 by DSwingley-esristaff
I would like to implement custom behavior when clicking on KML features. I can do this for non-KML feature layers and raster layers, but for some reason KML is giving me fits. The desired click behavior is: 1) I don't want to show a popup (I have accomplished this in a very hacky way with CSS), 2) I would like to query the layer with a buffered point and hand the resulting features to a sidebar component for analysis and display. (I can only accomplish this by clicking near enough to the features to grab them, but if I click on a graphic icon, the event is routed to the invisible infoWindow or whatever.) Is there a way to disconnect the KMLLayer's (and nested layers') onClick event and supply my own event handler?

Thanks,
Dan

Outcomes