def update
    @map_overlay = MapOverlay.find params[:id]
    if @map_overlay.update resource_params
      flash[:notice] = 'Updated the map overlay.'
      redirect_to action: :index