I have a graphic and a text inside the graphic:
...
var SVfeatureCollection = {layerDefinition: layerDefinition, featureSet: null};
var SVpointsLayer = new esri.layers.FeatureLayer(SVfeatureCollection, {mode: esri.layers.FeatureLayer.MODE_SNAPSHOT});
map.addLayer(SVpointsLayer);
var SVpointsInfoTemplate = new esri.InfoTemplate("<div class='a'><b>${name}</b></div>", "<div class='a'>${text}</div>");
var font = new esri.symbol.Font("8pt", esri.symbol.Font.STYLE_NORMAL, esri.symbol.Font.VARIANT_NORMAL, esri.symbol.Font.WEIGHT_NORMAL, "Arial");
dojo.forEach(SVpointFeatures, function (feature) {
feature.geometry = esri.geometry.geographicToWebMercator(feature.geometry);
var textSymbol = new esri.symbol.TextSymbol(feature.attributes.init, font, new dojo.Color("#000000"));
textSymbol.setOffset(0, -2);
feature.symbol=new esri.symbol.PictureMarkerSymbol('pictures/flag.png', 22, 20);
SVpointsLayer.add(feature.setInfoTemplate(SVpointsInfoTemplate));
SVpointsLayer.add(new esri.Graphic(feature.geometry, textSymbol));
});
SVpointsLayer.show();
...
The points layer is a feature layer with an info window.I can't open the info window when I click inside the graphic where the text is.Only when I click the areas where no text is I can open the info window.What can I do?