AnsweredAssumed Answered

InfoWindow title not visible Problem.............

Question asked by Nadir_Hussain on Dec 30, 2015
Latest reply on Jan 2, 2016 by Nadir_Hussain

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.

Attachments

Outcomes