AnsweredAssumed Answered

issue with mobile popup and graphics layer

Question asked by paulj82 on May 30, 2012
Latest reply on Jun 10, 2012 by khutchins-esristaff

I've problems with the mobile popup in connection with graphics: it only shows the title without the (>)-Button to the description.


That's the function I use to add the graphics:
      function addLocation(lon,lat,desc,date,address,field1){         //create a point form the input lat/long         var point = new esri.geometry.Point(lon,lat, new esri.SpatialReference(4326));         //associate the info with the graphics as attributes          var attributes = {           'Address':address,           'Field1': field1,           'Description':desc         };         //define an info template so a popup window with the point details appears when you click point         var infoTemplate = new esri.InfoTemplate('${Field1}','${*}');                  //define a symbol and add point to map          var locationSymbol = new esri.symbol.PictureMarkerSymbol({           "angle":0,           "xoffset":0,           "yoffset":10,           "type":"esriPMS",           "url":"",           "contentType":"image/png",           "width":24,           "height":24          });          //convert the point from geographics coords to web mercator since map is in web mercator           var webMercatorGeometry = esri.geometry.geographicToWebMercator(point);          var graphic = new esri.Graphic(webMercatorGeometry,locationSymbol,attributes,infoTemplate);;          map.centerAndZoom(webMercatorGeometry,12);              }

Any Ideas?

BR Paul