Dear All,
Thanks in advance..In load function i am using
parser.parse();
var imageParameters = new ImageParameters();
var startExtent = new esri.geometry.Extent(34.172358, 15.849254, 56.8245501, 32.2850301, new esri.SpatialReference({ wkid: 4326 }));
map = new Map("mapCanvas", { sliderOrientation: "vertical", sliderStyle: "small", logo: false, "nav": true, extent: startExtent });
map.disableMapNavigation();
map.infoWindow.resize(250, 100);
on datagrid row click event i am calling below function
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function QueryForSirenNumber(strSirenNumber) {
queryTask = new esri.tasks.QueryTask(strURL);
query = new esri.tasks.Query();
query.returnGeometry = true;
query.outFields = ["*"];
query.where = "SIREN_NO = '" + strSirenNumber + "'";
queryTask.execute(query, function (resultset) {
for (var i = 0; i < resultset.features.length; i++) {
var picGraphic = new esri.Graphic(resultset.features[0].geometry, new esri.symbol.PictureMarkerSymbol("Images/flag.png", 22, 22));
pt = resultset.features[0].geometry;
// alert(resultset.features[0].geometry.x + "__________" + resultset.features[0].geometry.y);
map.graphics.add(picGraphic);
}
map.infoWindow.setTitle("Coordinates");
map.infoWindow.setContent("Heeelllo");
map.infoWindow.show(map.toScreen(pt), map.getInfoWindowAnchor(map.toScreen(pt)));
});
}
Title of infowindow not coming.Please help.Thanks in advance.
Solved! Go to Solution.
Dear robert,
I have one .css class in code having name .title.when i change it with titlebar.My infowindow start showing default behaviour.so i think there should no css having name title.
Thanks.
Nadir,
Are you setting the map.infoWindow some where in the code? By default the map uses a popup dijit for the infoWindow (unless you are setting it to an infoWindow dijit in your code). The popup dijit has a
Dear robert,
I have one .css class in code having name .title.when i change it with titlebar.My infowindow start showing default behaviour.so i think there should no css having name title.
Thanks.