Select to view content in your preferred language

WAB Print Widget will not print while location widget is active

546
0
06-15-2017 11:52 AM
ChristopherSchreiber
Frequent Contributor

Hello all,

If you utilize the Print Widget while the "GeoLocation" widget is active, the print widget fails immediately.

It does add this to the Web_Map_as_JSON property though:

{  
   "id":"map_graphics",
   "opacity":1,
   "minScale":0,
   "maxScale":0,
   "featureCollection":{  
      "layers":[  
         {  
            "layerDefinition":{  
               "name":"pointLayer",
               "geometryType":"esriGeometryPoint"
            },
            "featureSet":{  
               "geometryType":"esriGeometryPoint",
               "features":[  
                  {  
                     "geometry":{  
                        "x":-8918372.693449495,
                        "y":4923226.038599581,
                        "spatialReference":{  
                           "wkid":102100
                        }
                     },
                     "attributes":{  
                        "position":{  
                           "coords":{  
                              "latitude":40.393059099999995,
                              "longitude":-80.115105,
                              "altitude":null,
                              "accuracy":6065,
                              "altitudeAccuracy":null,
                              "heading":null,
                              "speed":null
                           },
                           "timestamp":1497552113031
                        }
                     },
                     "symbol":{  
                        "angle":0,
                        "xoffset":0,
                        "yoffset":0,
                        "type":"esriPMS",
                        "url":"https://js.arcgis.com/3.17/esri/dijit/images/sdk_gps_location.png",
                        "width":21,
                        "height":21,
                        "style":"esriSMSSquare"
                     },
                     "infoTemplate":{  
                        "title":"Your Current Location:",
                        "content":"<b>Address: </b>198 Cluxton Rd, Collier Twp, Pennsylvania, 15106<br><b>Latitude: </b> 40.393059<br><b>Longitude: </b> -80.115105"
                     }
                  }
               ]
            }
         }
      ]
   }
}

I do not know if there is anything in here that would cause this to fail. 

Is this an issue anywhere else?

Thank you,

Chris

0 Kudos
0 Replies