anchor.diff:        var popupSrcNodeRef = dojo.create("div");
         var popup = new Popup(popupOptions, popupSrcNodeRef);
         var basemap = '#{BaseMap}';
  -      console.log("About to create Map with basemap " + basemap);
         map = new Map("mapDiv", {
           center: [ #{mapCenterLon}, #{mapCenterLat}],
           zoom: #{mapZoom},
  
positive.code:       }
  
        function graphicClicked(evt) {
          console.log("Entering graphciClicked()");
          console.log("evt is " + JSON.stringify(evt));
          popup.setFeatures([evt.graphic]);
          popup.setTitle("Train " + evt.graphic.attributes.trainId);
          var popupContent = buildPopupContent(evt.graphic.attributes.trainId,
  
negative.code:           graphic.attributes.distance = payload.distance;
            graphic.attributes.speed = payload.speed;
            if (popup.isShowing) {
              if (popup.getSelectedFeature() === graphic) {
                // The following call to setFeatures() seems to be necessary
                // to move the indication of the selected feature, but seems
                // to have the side effect of clearing the title and the content,
  