removeLayer(name) {
    // Cancel any outstanding requests to avoid calling the callback (which
    // would add the now-obsolete layer to the map).
    if (this.layerRequests[name]) {
      this.layerRequests[name].abort();
      delete this.layerRequests[name];
    }
    // Delete the current path.
    delete this.layerPaths[name];
    this.removeAlert(name);
    this.map.overlayMapTypes.forEach((function(mapType, index) {
                                       if (mapType && mapType.name == name) {
                                         this.map.overlayMapTypes.removeAt(
                                             index);
                                       }
                                     }).bind(this));
  }
Removes the map layer(s) with the given name.
@param {string} name The name of the layer(s) to remove.