Select to view content in your preferred language

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

2408
2
Jump to solution
12-30-2015 01:46 AM
NadirHussain
Occasional Contributor II

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.

0 Kudos
1 Solution

Accepted Solutions
NadirHussain
Occasional Contributor II

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.

View solution in original post

0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus

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

titleInBody property which defaults to true. It would help to see more of your code and know what API version you are coding against.

0 Kudos
NadirHussain
Occasional Contributor II

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.

0 Kudos