code: function checkFeature(point) {
    var feature;
    // Check if there is already a feature object for the given point
    for (var i = 0; i < feature_list.length; i++) {
      feature = feature_list[i];
      if (feature.getLocation().getLatitude() === point.getLatitude() &&
          feature.getLocation().getLongitude() === point.getLongitude()) {
        return feature;
      }
    }
    var name = '';
    feature = new messages.Feature();
    feature.setName(name);
    feature.setLocation(point);
    return feature;
  }
docs: Get a feature object at the given point, or creates one if it does not exist.
  @param {point} point The point to check
  @return {feature} The feature object at the point. Note that an empty name
  indicates no feature