anchor.diff:      // The following function has to be global so it can be referenced in
       // the Popup content.
       function publishStartCommand(trainId) {
  -      console.log("In publishStartCommand(" + trainId + ")");
         var topic = "TrainDemo/train/" + trainId + "/command";
         startMessage.destinationName = topic;
         mqttClient.send(startMessage);
  
positive.code:       }
  
        function onMessageArrived(message) {
          console.log("In onMessageArrived, payload is " + message.payloadString);
          var topicParts = message.destinationName.split("/");
          var trainId = topicParts[2];
          var payload = JSON.parse(message.payloadString);
  
negative.code:                                              evt.graphic.attributes.distance);
          popup.setContent(popupContent);
          popup.show(evt.mapPoint);
        }
  
        function mapLoaded(evt) {
  