Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have a javascript application that including FeatureLayers, TiledLayer, DynamicLayer. I wanna when click a feature layer, clicked object attributes should list in a dom element.

    createMap: function() {
        var self = this;

        self.map = new Map("map", { id: "myMap", logo: false });
        self.setMapEvents(self.map);

        if (self.options.mapLayers && self.options.mapLayers.length) {
            for (var i = 0; i < self.options.mapLayers.length; i++) {
                var layer = self.options.mapLayers[i].layerObject;
                var index = self.options.mapLayers[i].index;

                self.map.addLayer(layer, index);
            }
        }

    }

This function adds layers in current map.

FeatureLayer object has not a click or mouseDown event to handle clicked layer attributes. (Silverlight API has events)

self.options.mapLayers 

has a ArcgisTiledDynamicLayer and 3 FeatureLayer. How can I add events (or another way) to handle clicked FeatureLayer attributes?

share|improve this question
2  
Go through this example might be helpful to you developers.arcgis.com/en/javascript/jssamples/… . –  Gunner Jul 2 '13 at 14:44
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.